struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathy Zhou <>
Subject RE: Page pre-processing - reply - reply
Date Tue, 01 Jun 2004 13:26:48 GMT
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,


-----Original Message-----
From:	Eric Fesler []
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


On Mon, 2004-05-31 at 20:35, 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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message