How would this be done with jstl?


<c:if test="${user.role == 'member'}"/>
???

The logic:present tag relies on HttpServletRequest.isUserInRole() http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)

So, in JSTL I *think* you could do
<c:if test="${request.isUserInRole('myrole')}">


not quite as easy, and is 'user' a page scoped variable or is something else required.

Dan

David



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to