You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by veronica ballarta <ve...@hotmail.com> on 2005/11/09 00:36:37 UTC

how get files in clients???

ok thanks!! i have other question..this is my code to get files...but it 
works only in my machine..but in clients machinee it doesn't..i supossed 
that is because the File path..but how can i indicate the i like download 
file in drive c of client machine????
Please help
HttpURL hrl =
	          new HttpURL("http://localhost:8080/slide/files/JPR/fluyo/"+ 
recurso);
	          hrl.setUserInfo("fluyo","fluyo");
	          WebdavResource wdr =new WebdavResource(hrl);
	          File fn = new File("C:/"+recurso);<--here
	          wdr.getMethod(fn);
	         System.out.println("inside test "+wdr.getPath());



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: how get files in clients???

Posted by Vinu Varghese <vi...@gmail.com>.
Hi Veronica ,

 I don't think in a web application scenario u can force a client to 
place a file in a particular drive of his system, as the clients may 
differ in their nature ie; Some may be using Linux and some may windows.

Pls correct me if I am wrong :-)

Thanks
Vinu

veronica ballarta wrote:

> ok thanks!! i have other question..this is my code to get files...but 
> it works only in my machine..but in clients machinee it doesn't..i 
> supossed that is because the File path..but how can i indicate the i 
> like download file in drive c of client machine????
> Please help
> HttpURL hrl =
>               new 
> HttpURL("http://localhost:8080/slide/files/JPR/fluyo/"+ recurso);
>               hrl.setUserInfo("fluyo","fluyo");
>               WebdavResource wdr =new WebdavResource(hrl);
>               File fn = new File("C:/"+recurso);<--here
>               wdr.getMethod(fn);
>              System.out.println("inside test "+wdr.getPath());
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>

-- 
Vinu Varghese
[ Good is not Good when better is Expected ]
My Email : vinusemail@gmail.com <ma...@gmail.com>
My Web : www.vinusweb.com <http://www.vinusweb.com>
------------------------------------------------------------------------

X /minds /
*Solutions Unfolded*
[www.x-minds.org <http://www.x-minds.org>]