A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Can session's data be accessed in ActionForms ?
Joined: Feb 24, 2004
Nov 23, 2004 09:16:00
I use sruts 1.1. is there anyway you can access session variables in the ActionForms ?
Joined: May 29, 2003
Nov 23, 2004 11:47:00
Depends what you're talking about: validate gets passed a
, so request.getSession() would obviously give you access to the HTTPSession.
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Joined: Feb 05, 2003
Nov 23, 2004 15:06:00
The reset method also has request. It is possible to have a local variable on the ActionForm to hold request or session which would get set in the reset method. That said, I reeeeeeally don't recommend it.
A good workman is known by his tools.
I agree. Here's the link:
subject: Can session's data be accessed in ActionForms ?
html:link tag ------- urgent
MapBacked ActionForms and DynaActionForm
Value objects and ActionForms
ActionsForms and Value Objects
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015