Hi Denny,
I don't hav much idea abt NTLM, still...
Hav u stored roles and the associated users in that file.
Hav u specified that file as the file which contains user details in
server.xml file...
Check those things...
Joby Joseph
Wipro Technologies
Plot No.72, KEONICS Electronics City,
Hi Denny,
To get user name... do as follows...
<%@ page import="java.security.Principal" %>
And use in ur code as...
<% Principal p = request.getUserPrincipal();
out.println(p.getName()); %>
will print the name of the current user...
Joby Joseph
Wipro Technologies
Plot No.72, KEONICS Elec
Hi Denny,
U hav to use request.isUserInRole("Denny") to compare whether the user
logged in is Denny or not
Joby.
-Original Message-
From: Mario Winterer [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 3:13 AM
To: Tomcat Users List
Subject: Re: isUserInRole question
Hi
Hi,
I am using Tomcat 5.x. I am using BASIC JDBC Realm. I want to make my
own error page as the error page in the case of HTTP Status 401 error.
This error comes when I click on Cancel button when the realm asks for
user name and password.
Any one knowing this stuff, kindly reply.
Thanks in