You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mailing List <ma...@pdpsoft.com> on 2004/03/11 05:16:54 UTC

a security framework!

Hi,
I'm developing a web application with struts framework.I want to design some
jsp pages that support security at pages level.The security that I want to
be supported is that some components of each page can be shown for certain
user.I mean that for each user deponds on his access to the system we can
show some components of each page and does'nt show other components.Each
user deponds on his type and access at the system just can see his own
pages.can you offer a good framework for this goal that be compatible with
struts framework.
  
Regards

Re: a security framework!

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
I would start by looking at Tiles - you can associate roles using tiles.

If you are using XML configuration, you can associate a role with a
definition

       <definition name="my.tile.definition" path="...." role="myRole">
       </definition>

Also the tiles tags
      <tiles:insert page=".." role="...">
      <tiles:definition template=".." role="...">
      <tiles:put name=".." value="...." role="...">
      <tiles:add value=".." role="...">
      <tiles:get value=".." role="...">

To find out more about tiles:
   http://jakarta.apache.org/struts/userGuide/dev_tiles.html
   http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf

Also there is a tiles-documentation.war shipped with struts

Niall
----- Original Message ----- 
From: "Mailing List" <ma...@pdpsoft.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, March 11, 2004 4:16 AM
Subject: a security framework!


> Hi,
> I'm developing a web application with struts framework.I want to design
some
> jsp pages that support security at pages level.The security that I want to
> be supported is that some components of each page can be shown for certain
> user.I mean that for each user deponds on his access to the system we can
> show some components of each page and does'nt show other components.Each
> user deponds on his type and access at the system just can see his own
> pages.can you offer a good framework for this goal that be compatible with
> struts framework.
>
> Regards
>



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