I'm not aware of a "pure" jstl solution. What you coded is not jstl, it's java (almost).
request.isUserInRole('aa') JSTL does not allow you to call java methods (only getters and setters with a restricted syntax). You can use plain JSP and inject java into your pages or you can use one of the suggested taglibs. IMHO the taglibs are a better solution. -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Grzegorz Stasica Sent: Thursday, June 30, 2005 3:41 PM To: user@struts.apache.org Subject: Re: [OT] check role - isUserInRole in jstl ok, but is not jstl solution? Laurie Harper wrote: > 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] > > > --------------------------------------------------------------------- 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]