File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Fetching windows login user id  in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Fetching windows login user id in struts