RE: [OT] how to test user role in jsp
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:[EMAIL PROTECTED] 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 (and ) 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 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 [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to test user role in jsp
You can use (and ) 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 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 [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to test user role in jsp
Günther Wieser wrote the following on 5/3/2005 10:44 AM: i would like to display a link depending if a user is in a certain role. is there a test i could use in or anything else i could use as a tag to do this? do i need to implement this on my own? I like the Struts logic present tag for this: JSTL has one also but, as far as I know, it doesn't check for multiple roles like the logic:present one does. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] how to test user role in jsp
The Struts logic tags will do this foo If the current user has the named role (as determined by calling request.isUserInRole(...)) then the conditional markup will be rendered. I don't know whether you can do this using JSTL, I don't think this would work: But perhaps you could access the roles array within the principal (within the request)? -Original Message- From: Günther Wieser [mailto:[EMAIL PROTECTED] Sent: 03 May 2005 15:44 To: 'Struts Users Mailing List' Subject: [OT] how to test user role in jsp 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 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 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to test user role in jsp
You can use the logic present/notPresent tags. . http://struts.apache.org/userGuide/struts-logic.html#present Niall - Original Message - From: "Günther Wieser" <[EMAIL PROTECTED]> 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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]