1/ If the pages are similar, I would build one JSP page only and have
some presentation logic in the JSP (tags <logic: ...> using the role
data ).
2/ I use Struts and its Struts-config.xml to forward to the good JSP
file from one first Struts action that will test the user's role.

Hope this helps.

Fred

Le ven 28/11/2003 Ã 16:57, Vano Beridze a Ãcrit :
> Hello
> I'm a new user to struts.
> 
> What will be the best design pattern to achieve jsp pages protection in 
> my web app?
> 
> For instance I want to implement the following scenario.
> 
> user A has a role RoleA
> user B has a role RoleB
> 
> I have to pages:
> PageThatRequiresRoleA.jsp
> PageThatRequiresRoleB.jsp
> 
> only user A must have an access to PageThatRequiresRoleA.jsp
> and
> only user B must have an access to PageThatRequiresRoleB.jsp
> 
> Thank you very much
> 
> Vano
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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

Reply via email to