Skip to Content
author's profile photo Former Member
Former Member

access portalapp.xml property in java/jsp code

I am creating an iview using PAR portal component , i am defining initial values in portalapp.xml as properties with key and value.

The same can be accessed in iView properties. But I am not able to read them in my jspdynpage or jsp files.

I have read some where earlier that we can access these properties. Could some one let me know how can we do that.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2009 at 08:52 PM

    We can use the below code: link[click here for forum page|https://forums.sdn.sap.com/thread.jspa?threadID=86107]

    IPortalComponentContext context =currentRequest.getComponentContext();
    IPortalComponentProfile profile = context.getProfile();
    
    String property_needed = profile.getProperty("com.mycomp.portal.URL");
    
    out.println(property_needed);
    

    Edited by: kiran jakkaraju on Jul 30, 2009 3:52 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.