Jim Kennedy wrote:
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}" >

EL doesn't support method evaluation, so yeah that won't work.


You can just create a simple tag on your own to do this. As part of our company's core taglib we have.

<loki:inrole role="foo">

</loki:inrole>

So it only evaluates that if the user has that role. You can then extend it as you need. Maybe the next release of the JSTL will add a taglib that addresses security, but for right now, you're free to build it however you want.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to