Get the user executing the process

Hi, I have a servlet. I need to get the user who is executing the process, that is, you can view the users executing each process in the Windows Task Manager, but how can I get the user who is executing the servlet (or Java) by the aplication itself?
[257 byte] By [wilson_2a] at [2007-10-3 3:44:29]
# 1

I believe that one of the standard system properties includes the ID of the user that the process is running under. Read the API for java.lang.System.getProperties; I think it lists them there.

I'm not sure if that's what you're looking for, though. In the case of a servlet, this would be the user ID of whatever started the servlet environment. In a real production system this is likely to be "nobody" or an idea with low permissions created specifically for the purpose of running the server. Not sure if that's what you're looking for or how useful that would be to you.

In particular, if you're looking for the ID of the person running the browser that requested the page that the servlet in question is servicing...then you're pretty much out of luck.

paulcwa at 2007-7-14 21:40:40 > top of Java-index,Java Essentials,Java Programming...