Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Frank Schaare
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

RE: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Pady Srinivasan
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

Re: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Frank Schaare
Hi, thank you, that helps. Now i still need to know how to access the input page (set in action mapping with the input=sample.jsp tag)... I don't have sample code but are you looking for something like this: // in Action execute... ActionErrors errors = new ActionErrors(); // add errors...

RE: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Joe Germuska
At 3:58 PM -0500 3/24/04, Pady Srinivasan wrote: 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

Re: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Haroon Rafique
On Today at 9:58pm, FS=Frank Schaare [EMAIL PROTECTED] wrote: FS Hi, FS FS thank you, that helps. FS FS Now i still need to know how to access the input page (set in action FS mapping with the input=sample.jsp tag)... Hopefully you will see Joe's response in the same thread, which has the