On 6/17/05, Harland, David <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> How do you make the form remember the form values even if it fails the
> validation. At the moment I am having to store them in a request
> attribute before calling validate. Is there an easier way.
> 
> Thanks
> 
> Dave.

* Use string-type setters 
* use session scope for a form bean

You can find some insights here:
http://struts.sourceforge.net/strutsdialogs/dialogaction.html

P.S. It is weird why you have to *store* them before calling
validate(), because standard sequence is reset()/populate/validate().
Thus, if you just received values with request, they should be set in
the form before validate is called.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to