Hello Angel,
I don't know your solution, but I think you will be perhaps interested with
FormView project.
This taglib is able to manage a behaviour for a field in your page. So you
can
define Role for a field and so your inputs will be READ-ONLY, READ-WRITE,
INVISIBLE,...
accoding to the role. It avoid to do in your JSP :

<% if user.hasrole("ADMIN") { %>
<html:text ...
<% } %>


You can find FormView at http://formview.sourceforge.net/index.html.
See section http://formview.sourceforge.net/roles.html for manage role.

Regards Angelo

2006/4/19, Angel Navarro <[EMAIL PROTECTED]>:
>
> 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!
>
>

Reply via email to