<form name="userForm">
to:
<form name="/user">
Also, when you specify the action on html:form you should not include the ".do".
-Bill Siggelkow
Shawn Sandy wrote:
Thanks, I'm past that, now when I submit a form to be validated, no validation happens (required validation).
In my jsp I have these tags
<html:javascript formName="userForm" method="validateForm" dynamicJavascript="true" staticJavascript="false"/>
<html:form action="/user.do" focus="name" onsubmit="validateForm(this);">
and my validations.xml looks like this
<form-validation> <formset> <form name="userForm"> <field property="name" depends="required"> <arg0 key="err.msg"/> </field> </form> </formset> </form-validation>
and my DynaForm is defined like this (which DynaForm extends DynaValidatorActionForm
<form-bean name="userForm" dynamic="true" type="com.xxx.struts.forms.DynaForm"> <form-property name="securityLevel" type="java.lang.String"/> <form-property name="id" type="java.lang.Long"/> ... </form-bean>
Does anything look obvious?
Thanks in advance.
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Friday, September 10, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: Re: Resources not defined for Validator
Sounds like you haven't declared the Validator PlugIn in your struts-config.
Shawn Sandy wrote:
I'm sure I'm overlooking something simple here, but can anyone point me in the right direction for resolution of this error:
Resources not defined for Validator
Thanks
Shawn
--------------------------------------------------------------------- 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]