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