See also the standard Struts logic tags, particularly logic:present:

http://struts.apache.org/userGuide/struts-logic.html#present

L.

Lindholm, Greg wrote:

I've used the Jakarta taglibs-request tags to do this.
<%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0";
prefix="req" %>

<req:isUserInRole role="super">
        <c:set var='userIsSuper' scope='session' value='true' />
</req:isUserInRole>


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Grzegorz Stasica
Sent: Thursday, June 30, 2005 12:48 PM
To: user@struts.apache.org
Subject: check role - isUserInRole in jstl

I've a code like that
<c:if test="${request.isUserInRole('aa')}">
</c:if>

but I get an error that namespace has to be specified.
IsUserInRole is a function so probably I invoke it incorectlly.
How can I check user's role in jstl?


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


--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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

Reply via email to