This is handled with the "logic:present" tag in Struts.  You can't call
arbitrary methods in the first version of the JSTL.

> -----Original Message-----
> From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 12:58 PM
> To: Tag Libraries Users List
> Subject: JSTL and isUserInRole
> 
> Has anyone tried this using pure JSTL or Struts.  No rt.
> 
> I need to do something like this in JSP's
> 
> <c:if test="${pageContext.request.userInRole('foo') == true}" >
> 
> ...
> 
> </c:if>
> 
> The above does not work.  How can I do this?  isUserInRole(String) is
the
> method I need to call.  Or maybe there is another way around this.  I
want
> to be able to show content conditionally on the j2ee role.
> 
> 
> Jim Kennedy
> IT Consultant
> 
> 
> 
> ---------------------------------------------------------------------
> 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