You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Balakrishnan, Vijay" <VB...@newedgenetworks.com> on 2003/10/17 18:36:11 UTC

test expression within test using jsp:expression request.isUserInRole

Posted by Kris Schneider <kr...@dotech.com>.
<%@ 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" <VB...@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 <ma...@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