You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fernando Esteban Barril Otero <fe...@visionnaire.com.br> on 2002/05/27 19:42:06 UTC

Struts Validator

Hi,

Has anyone used the server-side validation with DynaActionForms using
the Struts Validator included in Struts 1.1-b1?

There are two classes (DynaValidatorForm and DynaValidatorActionForm) in
the package org.apache.struts.validator, but when I tried always generates
a NullPointerException whith the getDynaClass() method.

Example:

// OK, but no validation
<form-bean name="loginForm" type="org.apache.struts.action.DynaActionForm">
...
</form-bean>

// NullPointerException in getDynaClass() method
<form-bean name="loginForm"
           type="org.apache.struts.validator.DynaValidatorActionForm">
...
</form-bean>

Thanks in advance,

Fernando.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Struts Validator

Posted by Chuck Cavaness <ch...@attbi.com>.
This may be of no help, but I didn't see that you had the dynamic attribute 
to "true" like this:

<form-bean
     dynamic="true"
     name="loginForm"
     type="org.apache.struts.action.DynaActionForm">

Chuck

At 02:42 PM 5/27/2002 -0300, you wrote:
>Hi,
>
>Has anyone used the server-side validation with DynaActionForms using
>the Struts Validator included in Struts 1.1-b1?
>
>There are two classes (DynaValidatorForm and DynaValidatorActionForm) in
>the package org.apache.struts.validator, but when I tried always generates
>a NullPointerException whith the getDynaClass() method.
>
>Example:
>
>// OK, but no validation
><form-bean name="loginForm" type="org.apache.struts.action.DynaActionForm">
>...
></form-bean>
>
>// NullPointerException in getDynaClass() method
><form-bean name="loginForm"
>            type="org.apache.struts.validator.DynaValidatorActionForm">
>...
></form-bean>
>
>Thanks in advance,
>
>Fernando.
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>