A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
how to send the seesion value to action class??
Joined: Oct 27, 2009
Jan 05, 2010 03:26:01
I have a td element in table as ...
<td><s:property value="#session.userName" default="Guest"/><s:hidden name="projectCreator" value="#session.userName"/></td>
how should the value be passed as value in hidden to action class???
I have with the same name in action class
private String projectCreator;
Joined: Oct 29, 2001
Jan 05, 2010 06:51:38
There's no need to. The value is already in the session. Just recover it in the action.
Struts 2 FAQ: How do we get access to the session?
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: how to send the seesion value to action class??
Struts2 Data Transfer
which Struts tag?
null pointer exception in struts2
null pointer exception in struts2...
logic:iterate & input issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015