Hello!
I believe that getMethod needs an absolute path like:
/slide/files/filename.txt. You should look at the server's
log, it could
help you.
----- Original Message -----
From: "Julien Chambert" <julien.chambert gmail.com>
To: <slide-user jakarta.apache.org>
Sent: Wednesday, July 19, 2006 3:33 PM
Subject: slide client
> i'm a new bee in use of slide
>
> i try to use slide client on a java application and
don't manage to get
> file.
>
> here is my code:
> .....
> File temp = new File("temp.xml");
> root = new WebdavResource(webdavRootUrl);
> temp.CreateNewFile();
> System.out.println(webdavRootUrl);
> Sytem.out.println("read
:"+temp.canRead()+" write:
"+temp.canWrite());
>
System.out.println(root.getMethod("config/projects_con
fig.xml",temp));
> ....
>
> it displays:
> http://localhost:8
080/slide/files/
> read: true write: true
> false
>
> I don't understand when I check with konqueror the
file exists.....
>
> Can someone explain me what i have missed???
>
> thanks for your answer
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|