From: [EMAIL PROTECTED]

>One way of resolving this is to have a hidden field in your forms which
>specifies which step is being performed. Then in your reset() method, you
>can check which step you are at, and reset (or not) fields as appropriate.
>
>  > I'm trying to use form beans as suggested in the struts documentation,
>  > where I use a single form across several actions and pages, accumulating
>  > data as a I go.
>...
>  > At first, I couldn't get this to work until I figured out that the
>  > framework is calling reset() on the form bean on each action.

This would work of course, but it seems wrong, since now there is 
something on the form which ties behavior of the form (model) to the 
page (presentation).  If I move fields from one page to another, I'll 
have to modify the form bean.

It seems to me that struts *shouldn't* reset form beans that are 
stored with session scope.  Or am I misunderstanding something?

-wilhelm

-- 
______________________________________________________________________
Eric: I want to live in a world where software doesn't suck //////////
Richard: Any software that isn't free sucks ////////// [EMAIL PROTECTED]
Linus: I'm interested in free beer ///// <http://www.3roses.com/> ////


Reply via email to