- Design Issue with Struts Validation

2006-05-16 Thread J Gotsch
When I go to a page for the 1st time, the validation takes affect. Obviously I don't want that, I only want to validate upon submitting. How do I get around this? My form extends ValidatorActionForm My Action Mapping in Struts-Config: action

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
Hi, Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN:

Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr
Hi, Me, I use DispatchAction, and I prefer call validate in my action, instead of struts launch automaticaly validate (validate=true in action). So in my struts-config, I have just one mapping for an action (I set validate=false). After in my dispatchAction I design my DispatchAction with

Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Frank W. Zammetti wrote: Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Create a base action that has separate handlers for GET (initial page hit) and POST (form submission). off-topic Remember

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 2:02 pm, Dave Newton wrote: Frank W. Zammetti wrote: Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Create a base action that has separate handlers for GET (initial page

RE: - Design Issue with Struts Validation

2006-05-16 Thread Chaudhary, Harsh
I would go with the declarative approach. It lends to more flexibility. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:27 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: - Design Issue with Struts

Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 off-topic Remember the days when newsgroups had a daily or weekly FAQ posting? Whaddya think? /off-topic Not a bad idea, but someone would have to put it together each week. You voluntering? :) It would work if you simply put it together

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 3:19 pm, C. Grobmeier wrote: Good idea. But i think Dave is speaking of a FAQ which is not just summing up what happened this week on the struts list, but he is speaking of a real FAQ, with the most important links (to the wiki) etc. If we are speaking of the real FAQ i

Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If we are speaking of the real FAQ i can contribute ;-) Have some cool links of you guys here... Sounds like a Wiki to me :) There is a page for Struts FAQs (probably more than one) already on the Wiki. Go to it, I'm certain everyone will

Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Chaudhary, Harsh wrote: I would go with the declarative approach. It lends to more flexibility. Not really. If I'm doing something the exact same way every time I'd much rather handle it by implementing a method (that you'd have to implement anyway) and not bother with a config file change

RE: - Design Issue with Struts Validation

2006-05-16 Thread Mulligan, Scott H
Mulligan -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:47 PM To: Struts Users Mailing List Subject: Re: - Design Issue with Struts Validation Hi, Me, I use DispatchAction, and I prefer call validate in my action, instead of struts launch

Re: - Design Issue with Struts Validation

2006-05-16 Thread Michael Jouravlev
On 5/16/06, Dave Newton [EMAIL PROTECTED] wrote: off-topic Remember the days when newsgroups had a daily or weekly FAQ posting? Whaddya think? /off-topic We have wiki now. (I believe that wiki needs a bit of reorganization) * Any more or less important/frequent issues should be reflected in

Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr
at the validate attribute in the config? Scott Mulligan -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:47 PM To: Struts Users Mailing List Subject: Re: - Design Issue with Struts Validation Hi, Me, I use DispatchAction, and I prefer call