The 'user' is the UserPrincipal you can get from the HttpServletRequest.
To determine the user roles, there is also a method isUserInRole() in
the HttpServletRequest.
See API docs here:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html
Kind regards,
Jurgen
Cedric Legallo schreef:
Hi everyone !
Did someone has an example using the VisibleOnUserRole attributes ?
i understand how the tag works, but I don't know where the "user" is find.
What is the javatype of "user"?
Is it a session attribute ?
Is it a Tomcat(or application server) user ?
Thanks for answers
--
Le Gallo Cédric
--
Among flowers, the cherry blossom.
Among men, me.
begin:vcard
fn:Jurgen Lust
n:Lust;Jurgen
org:Universiteit Gent;Directie ICT
adr:Gebouw S9;;Krijgslaan 281;Gent;O-VL;9000;Belgium
email;internet:[EMAIL PROTECTED]
title:Projectleider J2EE softwareontwikkeling
tel;work:+32-9-2648554
x-mozilla-html:TRUE
url:http://www.UGent.be
version:2.1
end:vcard