zeta wrote:
I want to associate the validation with the action definition. In this way, I
need to performed the client-side validation when an action is called and
not taken into account the form associated to this action. Can you give me
some example of how do this?

I'm not sure what you mean by 'not taken into account the form associated to this action.' The way to get client-side validation is to include the <html:javascript> tag somewhere inside your <html:form>, and add an onsubmit handler to the form to call the generated Javascript code. See the <html:javascript> documentation [1] and the Validator Guide [2] for more info.

L.

[1] http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/javascript.html

[2] http://struts.apache.org/1.3.5/faqs/validator.html


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

Reply via email to