Hi Friends,
 
I am new this group...i don't the exact work flow....i would like to connect to 
server from client...but i am getting this error...
 
May 9, 2005 5:34:13 PM org.apache.commons.httpclient.HttpMethodDirector isRedire
ctNeeded
INFO: Redirect requested but followRedirects is disabled
org.apache.commons.httpclient.HttpException
        at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
va:3467)
        at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
va:3423)
        at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java
:967)
        at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResourc
e.java:912)
        at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.jav
a:1894)
        at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
301)
        at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
320)
        at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
408)
        at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290)
        at SlideTest.main(SlideTest.java:19)

 
what is the problem....how can i solve this problem....what is the error i 
wrote in this code...
 
WebdavResource container = null;
          HttpURL hrl = new HttpURL("http://localhost:99/slide/files";);
          hrl.setUserinfo("tomcat","tomcat");
            WebdavResource wdr = new WebdavResource(hrl);
            container = new WebdavResource(hrl);
                    if (container == null)
                    {
                        throw new Exception("Container WebdavResource is 
null!");
                    }
            container.putMethod("/slide/files/hello.txt", "Hello world\n");
            
            container.close();
 
 
Plz help me....
 
thanks for ur helping..
Srinivas

                
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

Reply via email to