struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: [OT] how to test user role in jsp
Date Tue, 03 May 2005 15:38:06 GMT
You can use the logic present/notPresent tags.

<logic:present role="roleA,roleB,roleC">
      .....
</logic:present>

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

Niall

----- Original Message ----- 
From: "G√ľnther Wieser" <gwieser@creative-it.com>
Sent: Tuesday, May 03, 2005 3:44 PM


i would like to display a link depending if a user is in a certain role. is
there a test i could use in <c:if test=${...}> or anything else i could use
as a tag to do this? do i need to implement this on my own?



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


Mime
View raw message