tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balakrishnan, Vijay" <VBalakrish...@newedgenetworks.com>
Subject RE: test expression within test using jsp:expression <c:when test ="<j sp:expression>request.isUserInRole
Date Fri, 17 Oct 2003 18:26:09 GMT
Thanks.Is there a way to do it within core using
${pageContext.request.isUserInRole eq 'xxx'}

Vijay

-----Original Message-----
From: Kris Schneider [mailto:kris@dotech.com]
Sent: Friday, October 17, 2003 10:56 AM
To: Tag Libraries Users List
Subject: Re: test expression within test using jsp:expression <c:when
test="<j sp:expression>request.isUserInRole


<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %>
...
<c_rt:when test='<%= request.isUserInRole("roleName") %>'>
  ...
</c_rt:when>

Quoting "Balakrishnan, Vijay" <VBalakrishnan@newedgenetworks.com>:

> Hi,
> 
> I want to test request.IsUserInRole within the test. How do i do that ?
> Right now,it says that test must not contain the < character.
> 
> Thanks,
> Vijay
> 
> <c:when test="<jsp:expression>request.isUserInRole("ServiceRequest
> setPon")</jsp:expression>">    				<div><input
> type="text" maxlength="20" name="serviceRequest.pon" value="<c:out
> value='${serviceRequest.pon}' />"></div>
>   					<div><input type="text"
> maxlength="20" name="serviceRequest.pon" value="<c:out
> value='${serviceRequest.pon}' />"></div>
>   				</c:when>

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message