A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
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?
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: how to send the seesion value to action class??
null pointer exception in struts2
which Struts tag?
logic:iterate & input issue
Struts2 Data Transfer
null pointer exception in struts2...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014