cancel
Showing results for 
Search instead for 
Did you mean: 

Store Java Objects in Netweaver Portal Session

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Manoj,

thanks for your reply.

Thats exactly what I was searching for.

Best regards,

Jerome

Answers (0)