A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to SET and GET session objects in Struts Action classes ???
Joined: Jan 07, 2009
Jul 04, 2009 03:31:00
Please tell me how can I SET and GET session objects in Struts Action classes ?
Its not what you do, its how well you do it.
Joined: Feb 05, 2009
Jul 04, 2009 03:43:45
I suppose you are working on struts2.
Two ways to do
a) Make your action class to implement SessionAware interface and implement the setSession method.
b) Using ServletActionContext i,e
session = ServletActionContext.getSession();
It is sorta covered in the
JavaRanch Style Guide
subject: How to SET and GET session objects in Struts Action classes ???
Webservices and Request/Response
please reply somebody need help
Struts 2 session writing efficiency / timing
Problem in setting Application scope Object
Passing variables from class to class (SOLVED)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013