RE: help using validate inside ActionForm

2005-12-05 Thread Garner, Shawn
Use the parameter attribute in the struts-config.xml file and then use the request.getParameter() in the form or action. Shawn -Original Message- From: Sun Shine [mailto:[EMAIL PROTECTED] Sent: Sunday, December 04, 2005 5:20 PM To: user@struts.apache.org Subject: help using validate

Re: help using validate inside ActionForm

2005-12-04 Thread Laurie Harper
+1 In terms of this particular requirement, what the validator framework does is provide the concept of 'pages' and page-specific validatons (think of a wizard, where each screen in the wizard is a 'page' and each validation rule is marked as being applicable to a specific page). Even if you

Re: help using validate inside ActionForm

2005-12-04 Thread Raghu Kanchustambham
While the "if" loops in the validate function of the form will work... i somehow think you are coupling the workflow with the validation rules. Why dont you look at the validation framework so that you "externalize" your validation logic into xml files? You can perform validation on a per form bas

Re: help using validate inside ActionForm

2005-12-04 Thread Sun Shine
Thank you! --- David Evans <[EMAIL PROTECTED]> wrote: > A few ideas that may get you started: > > you can use different names for the submit or image > tags that you are > using to submit the forms, and set up an if, else if > structure in your > validate method to see which page has submitted t

Re: help using validate inside ActionForm

2005-12-04 Thread David Evans
A few ideas that may get you started: you can use different names for the submit or image tags that you are using to submit the forms, and set up an if, else if structure in your validate method to see which page has submitted to the actionForm based on the parameters input. or use hidden tags to

help using validate inside ActionForm

2005-12-04 Thread Sun Shine
Hi all, In my application, I'm using one ActionForm Bean for several pages. How do I properly use validate method when user goes from one page to another? It's a collection of data, so, on page 1, I need to validate X fields, on page 2, validate Y fields, etc. Is there an easy way to tell what pag