struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathy Zhou <kz...@cmdservices.com>
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,

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


Mime
View raw message