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

how to read a property/param from portalapp.xml / in JSP


I need some help reading a property from portalapps.xml in the jsp. Im creating a PCR-form which calls a bsp-Page. But the Servername of the BSP-Page should be read from the portalapps.xml for easier maintainance.

But because im using the pcr-Framework (or ISR-Framework) i don't have a jspDynPage. So my question is, if it's possible to get the parameter out of portalapps.xml just with the jsp? Or is it possible to instantiate a bean to get those params?

Thanks a lot.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2005 at 05:55 AM

    i dont remember from the top of my head + i'm falling asleep. but.. try this

    IPortalComponentContext ctx = componentRequest.getComponentContext();
    IPortalComponentProfile profile = ctx.getProfile();
    String value = profile.getProperty("propertyID");

    componentRequest is avaiable in JSP just like the response object. You need not to instantiate it.

    getProperty("propertyID") is used to retrieve whatever propertyid you have in your portalapp.xml for that particular component you are executing.


    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.