on 12-08-2004 1:50 AM
Hi ,
I am using jspdynpage(application scope) and stored all the values in bean.i have 3 iView page.i passed some values from iview1->2-->3. if i am not doing anything for more than 5 mins in my 3rd iView page and again go back to iView page 2 i lost alost all my bean values.so i am getting null pointer exception(portal runtime error).
if i play around continously in all 3 iViews , i didnt get any error.
is there any reason my bean lost data?
regds,
Anto.
Hi all,
SAP has released note 802015 about the different ways how to store data of a portal component. Please have a look.
Best regards,
Norbert Hamann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I had the same Problem using "Context" and "application" scope. I also tried "Profile", "Request" and "Session".
"Session" worked best => nothing gets lost !
IPortalComponentSession componentSession = componentRequest.getComponentSession();
STORE:
componentSession.putValue("mybean", mybean);
GET:
mybean = (BeanClass)componentSession.getValue("mybean");
In the JSP:
<jsp:useBean id="mybean" scope="session" class="com.ecs.cfr.bean.BeanClass" />
Regards Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
I am using application scope .
regds,
Anto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
depending on where you put the bean:
componentSession - depending on HttpSession timeout.
profile/context - subject to garbage collection & portal component cleanup.
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 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.