A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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();
I agree. Here's the link:
subject: How to SET and GET session objects in Struts Action classes ???
Passing variables from class to class (SOLVED)
Struts 2 session writing efficiency / timing
Problem in setting Application scope Object
Webservices and Request/Response
please reply somebody need help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014