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:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 3:25 PM
> To: [EMAIL PROTECTED]
> 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
> 

Reply via email to