The issue is associating error messages, error message
arguments, and validation information like masks,
dates, etc. for different locales.  Also it would
start getting messy having regexp expression and other
things all directly associtaed with the custom jsp
tags.  Also, to store this information in the jsp page
would start cluttering your view with business logic.

There are a few other validation frameworks that
people have written.  They are posted here if you want
to look at them.

http://jakarta.apache.org/struts/userGuide/resources.html

David

--- Matt Koidin <[EMAIL PROTECTED]> wrote:
> I'm looking for a straightforward way to handle
> basic form validation. I
> downloaded the Struts Validator from Dave
> Winterfeldt and I really like
> the capabilities, but I'm wondering if anyone has a
> solution that is
> more generic? My big problem with the Validator
> design is the need for
> another xml file that I need to fill out for every
> form I want to
> validate. 
> 
> Maybe I am missing something, but is there a way a)
> either using this
> tool, or b) with another validator - that I can
> validate a field at the
> tag level.
> 
> For example, I'd like to write:
> 
> <html:text property="firstName" size="30"
> maxlength="30"
> validate="required"/>
> 
> -or-
> 
> <html:text property="email" size="30" maxlength="30"
> validate="required,
> email"/>
> 
> and not have to deal with a FORM-SPECIFIC xml file.
> Obviously, I'd have
> to detail what it meant to be "required" and what a
> valid "email" is.
> That seems to be done with the validator-rules.xml
> file. Why can't I
> access that directly?
> 
> I might just go build this myself, but I was curious
> if it has already
> been done, or if I am missing something with the
> Struts Validator.
> 
> Thanks,
> Matt
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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

Reply via email to