aspose file tools*
The moose likes Servlets and the fly likes How to get the web application users desktop location using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to get the web application users desktop location using java" Watch "How to get the web application users desktop location using java" New topic
Author

How to get the web application users desktop location using java

Ammu Isac
Greenhorn

Joined: Dec 04, 2009
Posts: 6
Hi,

We have a web application hosted and we need to find the user's desk top location on accessing the application by the user.
I have tried System.getProperty("user.home");
and
request.getContextPath();
but these wont solve the issue as both of them provides the application serve'r location.
Please provide a solution.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Can you elaborate? I don't really know what you are asking for. What do you mean by "user's desktop"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bhagat Singh Rawat
Ranch Hand

Joined: Apr 04, 2009
Posts: 93
Ammu Isac wrote:Hi,

We have a web application hosted and we need to find the user's desk top location on accessing the application by the user.
I have tried System.getProperty("user.home");
and
request.getContextPath();
but these wont solve the issue as both of them provides the application serve'r location.
Please provide a solution.

Thanks.



If I am not wrong then you are talking about the client machine. I think you don't have access to the local file system.


Brainbench Java 2.0 Fundamentals, J2EE 1.4
http://www.brainbench.com/transcript.jsp?pid=8192792
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'd need to use an applet--web apps can't find out information like that about the client's machine. Imagine the security risks if they could!
Bhagat Singh Rawat
Ranch Hand

Joined: Apr 04, 2009
Posts: 93
David Newton wrote:You'd need to use an applet--web apps can't find out information like that about the client's machine. Imagine the security risks if they could!


I heard about Signed Applet/JavaScript but you have to pay for it!!! :D
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Pay for what?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the web application users desktop location using java