A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Today (12/10) is CodeRanch Day in
Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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??
which Struts tag?
null pointer exception in struts2
null pointer exception in struts2...
logic:iterate & input issue
Struts2 Data Transfer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013