A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
accessing session attribute in jsp using struts2
Joined: Jul 18, 2007
Sep 18, 2009 06:49:36
I am struggling with setting session attribute in struts2 Action class.
when I set attribute in session Map in struts2, it gives NullPointer exception.
I have referred roseindia tutorial but did not succeed in setting and retrieving session attributes.
Thanks for any help.
Joined: Sep 29, 2008
Sep 18, 2009 09:02:06
Without knowing what you've already tried it's more difficult to help.
Normally you'd simply implement
and set the value to the session map.
I agree. Here's the link:
subject: accessing session attribute in jsp using struts2
Pagination in Struts2
ActionContext & ValueStack in struts2
Using struts2 only for internationalization
Showing Hiding <s:div> tag in Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015