Hi,
In this case it would be better to do it this was.
<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-bean>

<form-bean name="changePassword" 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>

Any other suggestions !
Bachan
 
 Heligon Sandra <[EMAIL PROTECTED]> wrote:
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:

type="org.apache.struts.validator.DynaValidatorForm">
initial="" />
initial="" />
initial="" />
initial="" />


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: 
For additional commands, e-mail: 



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

Reply via email to