Also, you'll need to move the html:javascript tag inside the html:form tag. The reason you're getting an error looking up the form bean is because it only exists within the scope of html:form tag. Note that this requirement is generally true for form-based tag in the html taglib.

L.

Ted Husted wrote:
The MailReader application for 1.3 uses DynaValidatorForm's. You could
change those to
DynaValidatorActionForm to test the syntax changes.

* http://svn.apache.org/dist/struts/apps/v1.3.0/

HTH, Ted.


On 3/21/06, Vinny <[EMAIL PROTECTED]> wrote:
Anyone have an example of using client
side validation with a DynaValidatorActionForm ?

I see no examples in here
http://struts.apache.org//struts-doc-1.2.8/userGuide/dev_validator.html
and while the javascript tag descrption is thorough:
(http://struts.apache.org//struts-doc-1.2.8/userGuide/struts-html.html#javascript)
I find it  sort of useless outside of context.

I am using the path attribute as the key in my validation.xml
The form associated with the action is a DynaValidatorActionForm.


<html:form action = "/FooLookupAction" onsubmit="return
validatefooLookupAction"(this)"

// stuff here

</html:form>
<html:javascript formName="LookupAction" />

now I realize this syntax must be very wrong because I'm getting:
ServletException:  No form found under 'FooLookupAction' in locale 'en_US'

I know that it is  done one way if you use a normal ActionForm for and
another way
for  DynaValidator* . I'm  piuzzled as to why usage examples on the
various permutations
of client side validation have not yet slipped into the docs after all
these years.

Thanks in advance.
Vinny

--
Ghetto Java: http://www.ghettojava.com

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




--
HTH, Ted.
** http://www.husted.com/ted/blog/


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

Reply via email to