Detecting the currently connected user to Tomcat

G

Guy

Hello

I have a java servlet that runs on a Tomcat server. I have a static
html page that has a user/password authentication which redirects to
the servlet itself (kind of "login").

Now I need to enable/disable certain features in the servlet according
to the user logged in. Is there a way to programatically know which
user has logged in to my page ?

Thanks

Guy
 
J

Jonck

In said:
Hello

I have a java servlet that runs on a Tomcat server. I have a static
html page that has a user/password authentication which redirects to
the servlet itself (kind of "login").

Now I need to enable/disable certain features in the servlet according
to the user logged in. Is there a way to programatically know which
user has logged in to my page ?

Of course, he just logged in at your site. This means he just filled in
his username, that should give you a hint as to who's logged in... :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top