title: Java: How to upload a file to a WebDAV server from a servlet?
body: <p>my ajax application uploads a file to a Java application container from the user's browser. What I'd like to do is this: once the uploading has completed I want to "send" the file to a WebDAV server, identified by the host name (i.e. localhost), the port (i.e. 8080) and the location where I want to store the file (i.e. dir1/dir2).</p>
  
  <p>What I am after is basically a WebDAV client framework that enables me to upload a file to WebDAV. In my application I am already using "webdavclient4j", but I don't seem to find a way to upload a file with it?</p>
  
  <p>Any ideas? Thanks in advance for any help you might provide.</p>
  
  <p>F</p>