You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Doug Thomas <do...@softechnics.com> on 2005/08/12 21:37:17 UTC
Validation Rules method not found
While implementing struts validation for the first time (yup - I'm a
newbie), I received a NoSuchMethodException during runtime. The exact error
on the console log was:
[8/12/05 12:49:19:062 EDT] 00000042 Validator E TRAS0014I: The
following exception was logged java.lang.NoSuchMethodException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest)
My validate file contains:
<formset>
<form name="logonFormBean" >
<field property="userId"
depends="required" >
<arg0 key="app.logon.userid" />
</field>
<field property="pwd"
depends="required" >
<arg0 key="app.logon.pwd" />
</field>
</form>
</formset>
...and my <form-bean>:
<form-bean name="logonFormBean"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="userId"
type="java.lang.String" />
<form-property name="pwd"
type="java.lang.String" />
<form-property name="termId"
type="java.lang.String" />
<form-property name="appVer"
type="java.lang.String" />
</form-bean>
What am I missing?
I'm thinking this is a development system (WebSphere 6.0) configuration
error, rather than a coding error.
Thanks.
Doug Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Validation Rules method not found
Posted by David McReynolds <da...@gmail.com>.
I just fixed this. You have mixed up the versions of the
validator-rules.xml and the struts jar. Either go back to struts jar
1.1 or upgrade the validator-rules.xml.
On 8/12/05, Doug Thomas <do...@softechnics.com> wrote:
> While implementing struts validation for the first time (yup - I'm a
> newbie), I received a NoSuchMethodException during runtime. The exact error
> on the console log was:
>
> [8/12/05 12:49:19:062 EDT] 00000042 Validator E TRAS0014I: The
> following exception was logged java.lang.NoSuchMethodException:
> org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
> org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
> javax.servlet.http.HttpServletRequest)
>
> My validate file contains:
>
> <formset>
> <form name="logonFormBean" >
> <field property="userId"
> depends="required" >
> <arg0 key="app.logon.userid" />
> </field>
> <field property="pwd"
> depends="required" >
> <arg0 key="app.logon.pwd" />
> </field>
> </form>
> </formset>
>
> ...and my <form-bean>:
>
> <form-bean name="logonFormBean"
> type="org.apache.struts.validator.DynaValidatorForm">
> <form-property name="userId"
> type="java.lang.String" />
> <form-property name="pwd"
> type="java.lang.String" />
> <form-property name="termId"
> type="java.lang.String" />
> <form-property name="appVer"
> type="java.lang.String" />
> </form-bean>
>
> What am I missing?
>
> I'm thinking this is a development system (WebSphere 6.0) configuration
> error, rather than a coding error.
>
> Thanks.
>
> Doug Thomas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
--dlm
www.myjavaserver.com/~dlm8751
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org