This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes in struts2 how can I  use session variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "in struts2 how can I  use session variables" Watch "in struts2 how can I  use session variables" New topic
Author

in struts2 how can I use session variables

Ar Reddy
Greenhorn

Joined: Nov 03, 2008
Posts: 20
in struts2 how can I use session variables
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi reddy,

you can use
Ar Reddy
Greenhorn

Joined: Nov 03, 2008
Posts: 20
Thanks for your reply.
If I want to use in jsp page how can I use it.. while editing a page need to display before entered values in that session. pLease provide me a sample in strtus 2.
Thanks,
Arpitha.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi Arpitha,

I didn't understand what you are looking for, here are some link,
http://struts.apache.org/2.0.14/docs/simplelogin-with-session.html
do not use scriplets in your jsp page. To retrieve context, application, session, request scope object use the following url
http://struts.apache.org/2.0.8/docs/jsp.html

hope you find these useful.
Satabdi Bhattacharjee
Greenhorn

Joined: Jul 25, 2011
Posts: 2
here you set value in session ...its ok.

now get value in jsp...
getAttribute("string");

ok.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: in struts2 how can I use session variables