on 07-25-2005 9:15 AM
Hello
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.
Stefan
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.
goodluck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.