| 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.
|
 |
 |
|
|
subject: in struts2 how can I use session variables
|
|
|