I don't have sample code but are you looking for something like this:

// in Action execute...
ActionErrors errors = new ActionErrors();
// add errors...
...
// set in request
request.setAttribute("org.apache.struts.action.ERROR", errors);
// forward to same page...


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-----Original Message-----
From: Frank Schaare [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 24, 2004 3:35 PM
To: Struts Users Mailing List
Subject: Submit Once, Validate Twice -- but how ?

Hi,

just read this article on husted.com and it seems to be good advice.

When the user submits a page, passes validation without errors, is there 
a chance to validate business logic in the action ?

Therefor i need to
- make my validation,
- get an errors object,
- store the error,
- put the errors object in the request and
- return to input page.

Has anyone some sample code / suggestions / articles / sources hoe to 
achieve this ?

Thx....

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


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Heroix e-mail Security System
______________________________________________________________________

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

Reply via email to