struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Günther Wieser <gwie...@creative-it.com>
Subject RE: [OT] how to test user role in jsp
Date Tue, 03 May 2005 18:26:56 GMT
it's amazing, how could i've missed that functionality of the logic: present
tag??!?!

thanks, guys, sometime the obvious is too near to see it!

kr,
guenther


--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-----Original Message-----
From: Joe Germuska [mailto:Joe@Germuska.com] 
Sent: Tuesday, May 03, 2005 6:00 PM
To: Günther Wieser; 'Struts Users Mailing List'
Subject: Re: [OT] how to test user role in jsp

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




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


Mime
View raw message