Solved

Tomcat: How to get user identity from http header

Posted on 2004-10-11
2
274 Views
Last Modified: 2010-03-17
I have setup serveral user in the tomcat-users.xml file in the server so that everytime user are required to login to the system.  However how can find the login user in the http header? Which attribute it used to store the login username ?
0
Comment
Question by:jabbaa
2 Comments
 
LVL 13

Accepted Solution

by:
petmagdy earned 50 total points
ID: 12301830
Try this from your Jsp or servlet:

String loginInUser = request.getRemoteUser();
0
 

Author Comment

by:jabbaa
ID: 12331510
It works for me..thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question