struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject Re: [OT] how to test user role in jsp
Date Tue, 03 May 2005 15:59:42 GMT
You can use <logic:present> (and 
<logic:notPresent>) to conditionally evaluate the 
user's role:
http://struts.apache.org/userGuide/struts-logic.html#present

Joe


At 4:44 PM +0200 5/3/05, Günther Wieser wrote:
>hi,
>
>sorry for posting something that's very likely not really related to struts
>(but maybe it is, who knows), but coudn't find anything on the net.
>
>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?
>
>kr,
>guenther
>
>--
>Günther Wieser
>
>creative-it
>Guglgasse 6/1/11/1
>A-1110 Wien
>Austria
>http://www.creative-it.com


-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Mime
View raw message