Hello,
I have several iViews based on the same JSP file.
In the iView properties, I have added a parameter to pass from page request.
This parameter is different for every iView based on this single JSP file.
Now,
In the JSP file I want to read the value of this parameter and take some action based on this value.
In the iView properties, it says that the propertyID is "com.sap.portal.reserved.iview.ParamList".
How can I get a handle to this parameter list from the JSP file and read it?
I probably have to do something with this PropertyID, but I don't have a clue what?
Can somebody help me on this.
Thanks!
Stefan Beekman
Hi Stefan,
> In the iView properties, I have added a parameter
> In the JSP file
> I want to read the value of this parameter
> the propertyID is
> "com.sap.portal.reserved.iview.ParamList".
One of these sentences is wrong. I assume that you have <i>set a value on</i> (not: added) the (predefined) property com.sap.portal.reserved.iview.ParamList, right?
And then your question is how to obtain the value of this property from the JSP behind it, when called.
Before the JSP is called, probably a JSPDynPage will have been called. From within this, you can retrieve the IPortalComponentProfile from IPortalComponentContext, which again is accessible from IPortalComponentRequest (and this you have at hand).
Read the parameter value from the profile, see http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/runtime/com/sapportals/portal/prt/component/IPortalComponentProfile.html and pass to JSP via some scope the value itself or packaged within some bean).
Hope it helps
Detlev
PS: Please consider rewarding points if answers are helpful. Thanks in advance!
Add a comment