on 10-28-2010 4:18 PM
Dear all,
I have the following question:
I want to store some user specific java objects in the user session of the SAP Netweaver Enterprise Portal.
We are using Java Web Application Server 7.0 Service Pack 21
Does the WebDynpro framework offer some method to access session object and put objects in?
I can get the Locale of the user session for example.
But I cannot find methods to store data in the session of a user.
Thank you for your help.
Best regards,
Jerome Houboi
Hi,
You can try with the following code.
IClientSession session = Utils.getCurrentClientSession();
IScope scope = session.getScope();
scope.put("YOUR_ID", <VALUE FROM ATTRIBUTE OR HARD-CODED>);
String key = (String) scope.get("YOUR_ID"); // way to retrieve
Hope this helps.
Regards,
Manoj
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 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.