This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Fetching windows login user id  in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Fetching windows login user id  in struts" Watch "Fetching windows login user id  in struts" New topic
Author

Fetching windows login user id in struts

G.T. Reddy
Ranch Hand

Joined: Jun 25, 2002
Posts: 45
Hi All,
I have been facing one problem in fetching windows(client) login user id in struts application.

The requirement is like this:
------------------------------
When the user(on some other windows m/c ) connecting to application through IE browser which is running in weblogic server,I need to get the
that user windows login id in java/jsp class.
please help me.

Thanks,
GTR
Rajah Nagur
Ranch Hand

Joined: Nov 06, 2002
Posts: 239
Try running a signed applet in the IE browser and get the System property user.name which is the User account name.

And post this info to a servlet on the server side.


You can't wake a person who is <b><i>pretending</i></b> to be asleep.<br />Like what <b>"it"</b> does not like - <i> Gurdjieff </i>
G.T. Reddy
Ranch Hand

Joined: Jun 25, 2002
Posts: 45
Hi Rajah,
If U don't mind Could U please send me the code.
I am working in US and I had very busy schedule.

Thanks & regards,
GTR
azhar bharat
Ranch Hand

Joined: Jul 17, 2006
Posts: 87
Since you have a windows server, it is better to have a webservice running in IIS on windows.
Just access the webservice from your webapp.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Fetching windows login user id in struts
 
Similar Threads
NT authentication in Java/JSP
NT authentication
How to read client m/c windows login id through JavaScript.
Database Connection
Java - Getting Login ID