To answer my own question. After much pain, I found out the following worked:
<html:javascript formName="/addAsset" method="validateAssetForm" dynamicJavascript="true" staticJavascript="true" /> I missed the method="validateAssetForm" part, not sure why it's vital here. It works thought without it when validating against the form (rather than action path). Saul > > Hi, > > I'm using the Validator to validate against an action path (rather than > a form), it works fine on the server side. But it doesn't work on the > client side using javascript. All the javascripts are spitted out as > text, I noticed the starting and ending <script> tag is missing in the > generated javascript. I wonder what the problem could be. I have the > following in my jsp file: > > > <html:form action="/addAsset.do" enctype="multipart/form-data" > onsubmit="return validateAssetForm(this);"> > > > <html:javascript formName="assetForm" dynamicJavascript="true" > staticJavascript="true" /> > > > and should I use "addAsset" or "/addAsset" for the "formName" attribute? > It doesn't work either. > > > thanks, > > Saul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

