File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 HttpSession session = ServletActionContext.getSession();
I agree. Here's the link:
subject: How to SET and GET session objects in Struts Action classes ???
Struts 2 session writing efficiency / timing
Webservices and Request/Response
Problem in setting Application scope Object
Passing variables from class to class (SOLVED)
please reply somebody need help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015