Problem with method isUserInRole()

Nikolaos Papadakis <[email protected]> Sat, 10 Dec 2005 09:52:14 +0200
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Dear all,

I am trying to develop a web application (written using webmacro) using 
openLdap to handle user authentication and roles.
When I get the request in the webmacro application and try to figure out 
the user's role using the method isUserInRole(“userRole”) the method 
always returns null value.
I have tried the same method in a jsp and the method returns the correct 
value. I am using tomcat 4.1 as servlet container. Any help would be 
appreciated.

the snippet of code follows:

public Template handle(WebContext context) throws HandlerException {
HttpServletRequest request = context.getRequest();
HttpSession session = request.getSession();

request.isUserInRole(“userRole”);
...............
........


Thank you in advance,
regards
Nikolaos Papadakis


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click