javax.servlet.http.HttpServletRequest contains these methods

public boolean isUserInRole(java.lang.String role)
public java.security.Principal getUserPrincipal()


Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 13, 2001 8:46 AM
>To: [EMAIL PROTECTED]
>Subject: How to get userRole from Tomcat 3.2.3?
>
>
>Hi,
>
>I am using JDBCRealm and need a convenient way to get the userRoles of the
>user. GetRemoteUser is not the right way. In the source code of JDBCRealm I
>found a getuserRoles method - how can I use it in my own servlets? Calling
>jedbcRealm = new JDBCRealm() and then jdbcRealm.getuserRoles do not work,
>of course...
>
>Best thanks in advance
>
>Thomas W. Richter
>
>

Reply via email to