You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Wellie W. Chao" <wc...@caraveltech.com> on 2002/04/13 13:23:55 UTC
RE: StrutsTiles Design: Model2 and authorization
Just put them behind a protected space that only allows in a certain role
(say, "inaccessible"). Make sure that role doesn't map to any user. The
pages can still be included at runtime via the RequestDispatcher (because it
doesn't pay attention to security constraints). Here's an example from my
web.xml:
<!-- Prohibit direct access to tiles components -->
<security-constraint>
<web-resource-collection>
<web-resource-name>TilesComponents</web-resource-name>
<description>Tiles components</description>
<url-pattern>/tiles-common/*</url-pattern>
<url-pattern>/tiles-layouts/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>inaccessible</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
-----Original Message-----
From: woon@SMI.Stanford.EDU [mailto:woon@SMI.Stanford.EDU]On Behalf Of
Mark Woon
Sent: Saturday, April 13, 2002 12:05 AM
To: wchao@caraveltech.com
Subject: Re: StrutsTiles Design: Model2 and authorization
"Wellie W. Chao" wrote:
> I have the layout tiles and
> common tiles (e.g. nav bars, footers, etc.) protected so that they are
> inaccessible except through a parent tile's RequestDispatcher.
How exactly do you do this?
Thanks,
-Mark
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>