OOPS.. sorry. I just tried that it wont work

Thanks

KiranKumar (Raj)
ext 7203


-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:15 PM
To: Tag Libraries Users List
Subject: RE: JSTL and isUserInRole


Uh, no, that won't work.  You can't call arbitrary methods in JSTL.

> -----Original Message-----
> From: Kumar, Kiran [mailto:[EMAIL PROTECTED]
> 
> change it to
> <c:if test="${pageContext.request.isUserInRole('foo')}" >
> 
> Thanks
> 
> KiranKumar (Raj)
> ext 7203
> 
> -----Original Message-----
> From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> 
> 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.

---------------------------------------------------------------------
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