I think the regular expression version (eg
http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts_p.html )

is much better, becouse jou can easely write a client side validation with
the same regexp. ( have it working except for the stupid checkboxes and
radio buttons in ie4+, I keep "losing" my properties)and the regexp object
is part of javascript since version 1.1(I thought, browser NS3+, ie4+).


----- Original Message -----
From: "Neal Kaiser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 04, 2001 8:52 PM
Subject: Data Validation


> Has anyone thought about adding data validation tags to the Struts
taglibs?
>
> For example, what if we could do:
>
> <form:text property="username" required="true" validationtype="varchar" />
>
> or something like that.
>
> Could it not generate the necessary javascript, as well as provide an easy
> to use
> interface for detecting and reporting errors in the Action.perform()?
>
> Just wondering...  Where do people typically do their validation? In the
> ActionServlet
> or ActionForm? Are there any pros/cons?
>
> Thanks,
> Neal
>

Reply via email to