struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: Struts 1.1 To-Do - Enhance role checking
Date Sat, 07 Jul 2001 20:23:21 GMT


On Wed, 27 Jun 2001, BONAIUTO,JAMES (HP-NewJersey,ex1) wrote:

> sorry, heres the example:
> <logic:present role="admin,user,manager" >
> 	<bean:write key="confirm.authorized" />
> </logic>
> 

I assume this means you'd write the authorized message if
request.isUserInRole() returned true for any of the listed role
names?  Likewise, the body of <logic:notPresent> would be processed if
isUserInRole() returned false for any of the listed role names?

Makes sense to me.

> James Bonaiuto
> 

Craig


> -----Original Message-----
> From: BONAIUTO,JAMES (HP-NewJersey,ex1) [mailto:james_bonaiuto@hp.com]
> Sent: Wednesday, June 27, 2001 3:25 PM
> To: struts-dev@jakarta.apache.org
> Subject: Struts 1.1 To-Do - Enhance role checking
> 
> 
> I would like to extend the <logic:present> and <logic:notPresent> tags to
> accept a comma-delimited list of roles in the role attribute, like this:
> 		<logic:present 
> 
> Is this an acceptable solution to the to-do list item? If so, I'd like to
> make that change.
> 
> James Bonaiuto
> 


Mime
View raw message