With DynaValidatorForm it is possible to use the same Form for
multiple
        views (JSP page), isn't it ?
        How one indicates which parameter validated for a given page/action
?

        For example I defined the following form:

        <form-bean name="loginForm" dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="userName"         type="java.lang.String"
initial="" />
        <form-property name="password"          type="java.lang.String"
initial="" />
        <form-property name="newPassword1"  type="java.lang.String"
initial="" />
        <form-property name="newPassword2"  type="java.lang.String"
initial="" />
        </form-bean>

        For the page login.jsp only the fields userName and password are
visible.
        The validator has to ignore the value of the other fields.

        For the page changePassword.jsp all the fields are visible.

        Is it possible to do that ?

        Thanks a lot 

        

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to