When a validation error occurs, the usual intention is to allow the
user to correct his/her mistakes by presenting the values that were
entered.  If you wish to override this behavior, you can manually call
validate() by applying some of the techniques Rick Reumann
demonstrates in the section "Manually call validate and use Request
Scope" on http://www.reumann.net/struts/articles/request_lists.jsp.

Hubert

On 9/27/05, rahul <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I need to show some prefilled value in a html form then take new inputs
> from the user and save the changes.
>
> I am doing this by prepopulating an ActionForm, putting it into request as
> an Attribute
> then displaying it onto the jsp.
> Its working fine and the changed value are also available in next Action.
>
> But the problem arises when some error is returned by ActionForm.validate()
> method
> In this case the same jsp is shown but the prepopulated values are gone.
>
> Is there any way to keep the prepopulated values in the jsp when input jsp
> is shown
> due to ActionErrors returned by validate() method.
>
> Do I need to store the prepopulated ActionForm in session instead of
> request?
>
>
> --RahulJoshi
>
>
>
>
>

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

Reply via email to