You need to have your action bean. In your action bean, you could do like:
if (!errors.empty()) {
saveErrors(request, errors);
// call the action/or other beans to initialize your collections/data here, then
forward to input,
// Return to same page
return (new ActionForward(mapping.getInput()));
}
for your info,
Kathy
-----Original Message-----
From: Eric Fesler [SMTP:[EMAIL PROTECTED]
Sent: Monday, May 31, 2004 3:40 PM
To: Struts Users Mailing List
Subject: Re: Page pre-processing - reply
Where do you call the action when the form validation failed?
In this case, Struts automatically forward the request back to the
input.
--ERic
On Mon, 2004-05-31 at 20:35, [EMAIL PROTECTED] wrote:
> Manually calling execute() will work if execute() only does the initializing
> collections or data used on a form. Good idea.
>
> Kathy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]