If different inputs are required according to role, then you may need
to fall back to the standard "validate" method to do that part of the
validation. Other parts of the validation could still be done by the
Validator framework, but you would also include a custom validate
method that would look at the user role. Just be user to call
super.validate if you implement validate and also use the Validator
framework.

HTH, Ted.

On 4/18/06, Angel Navarro <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a web application with Struts 1.3.
> This application is multi profiles. For example, when the profile is
> Manager, the page have 3 inputs, but if the profile is User, the page have 2
> inputs.
> In this case, how can I validate this form?
>
> How can I have a system validation that having an user profile in session,
> can it validate the form???
>
> Thanks!
>
>


--
HTH, Ted.
** http://www.husted.com/ted/blog/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to