Re: Help on Validation

2006-06-15 Thread Garner Shawn
I like to put any basic validations like required fields, field size, and content (alphanumeric, date format) into the form. Anything that requires a database call or extended business logic I do in the action and delegate it off to a business/DAO class. I find it is easier to manage things if th

Re: Help on Validation

2006-06-15 Thread Rick Reumann
On 6/15/06, Vishal Seth <[EMAIL PROTECTED]> wrote: Can there be some thing which can be looked at or any ideas on what could be the better way to implement this sort of condition? Do you really 'have' to bother using validate='true'? Personally, I still find it much more conveineint to validat

RE: Help on Validation

2006-06-15 Thread Vishal Seth
Subject: Re: Help on Validation Scott Van Wart wrote: > Can you give an example? I'm still not completely positive I know > what the problem is, and if you really need this kind of complexity. I think he was asking if there was a way to declaratively define validations based on runtime dyn

Re: Help on Validation

2006-06-15 Thread Dave Newton
Scott Van Wart wrote: > Can you give an example? I'm still not completely positive I know > what the problem is, and if you really need this kind of complexity. I think he was asking if there was a way to declaratively define validations based on runtime dynamics, like the user name. This strike

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: Yep I agree. But writing plugins would not help as plugin would be loaded during the application load time. Can there be some thing which can be looked at or any ideas on what could be the better way to implement this sort of condition? Thanks for your help. Can you give

RE: Help on Validation

2006-06-15 Thread Vishal Seth
: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 8:18 PM To: Struts Users Mailing List Subject: Re: Help on Validation Vishal Seth wrote: > I got the first point mentioned where I would need to override the > validationKey method and not the second one. > > Proble

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: I got the first point mentioned where I would need to override the validationKey method and not the second one. Problem here is it is not only required during login time but throughout the application there can be different validations for each form or some of the forms. Hen

RE: Help on Validation

2006-06-15 Thread Vishal Seth
first point mentioned I would need to have different forms entry throughout the application. -Original Message- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 7:08 PM To: Struts Users Mailing List Subject: Re: Help on Validation Vishal Seth wrote: >

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: Hi, Can I do validation for same form on basis of some session key. Currently all the validations are stored in application scope. I want depending upon user logged the validation fired should be different on same form. I would be having different validation files for

Help on Validation

2006-06-15 Thread Vishal Seth
Hi, Can I do validation for same form on basis of some session key. Currently all the validations are stored in application scope. I want depending upon user logged the validation fired should be different on same form. I would be having different validation files for different users. It