I remember someone kind of scoffing at us defaulting forms to session scope -- and adding further that request is really what we should have gone with. They further added that this functionality could not be easily changed, since there were so many Struts apps deployed that undoubtedly relied on the behavior.

So ... is this something to slate for 2.0? :-) (if we even still *have* the notion of a form-bean!)

Martin Cooper wrote:

I'm probably missing something obvious here, since nobody else has mentioned
it so far, but wouldn't the simplest way of achieving what you want be to
*not* use session-scoped form beans?

If each page includes the data for all of the wizard pages, then reset() can
safely reset all of the fields in the form bean, in the knowledge that the
request will contain the values for all of those fields. Simply use hidden
fields for those fields which are not part of the visible page, and those
values will be safely round-tripped for you, without having to worry about
session data and selective resetting of fields.

--
Martin Cooper

--
Eddie Bush




--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to