You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kathy Zhou <kz...@cmdservices.com> on 2004/06/01 15:26:48 UTC
RE: Page pre-processing - reply - reply
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:eric@audaxis.com]
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, vancega@bellsouth.net 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org