Skip to Content
0
Former Member
Jul 22, 2005 at 01:17 AM

How to read Personalization parameters inside JSPDynPage

24 Views

I have a jspdynpage Iview. I would like to set some personalization parameters & read it in doInitialization() method of jspdynpage. I tried setting the parameter of iView called “parameters to Pass from Page Request”. I tried both url & embedded isolation method. I am not able to read the value of the parameter in doInitialization(). I always get null. How do I personalize iView?

Here is my portalapp.xml

-


<?xml version="1.0" encoding="utf-8"?>

<application>

<application-config>

<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>

</application-config>

<components>

<component name="test_event_controller">

<component-config>

<property name="ClassName" value="com.documentum.ei.epiviews.test_event_controller"/>

<property name="SecurityZone" value="com.documentum.ei.epiviews.test_event_controller/low_safety"/>

<property name="com.sap.portal.reserved.iview.ParamList" value="*"/>

</component-config>

<component-profile/>

</component>

</application>

Here is the JSPDynPage code:

public static class dctm_test_jspdynpage2DynPage extends JSPDynPage {

public void doInitialization() {

IPortalComponentRequest request =

(IPortalComponentRequest) this.getRequest();

String parameter = request.getParameter("p1");

}

}

I clicked on the personalize option on the iView & set following attribute:

“Parameters to Pass from Page Request” to “p1=test123“ (without double quotes)