Hi,

I have a problem in retrieving property name of a resource.
In slide doc i got explanation about how to contruct a request of property
name by give a parameter in propfindMethod with (public static final int
        NAMES         2). But it still doesnt't work.


--------------- Taken from Slide Doc -----------------

NAMES

public static final int NAMES

    Request of all properties name.

------------------------------------------------------


Here is my code :

  HttpURL url = new HttpURL(host);
  url.setUserinfo(username, password);
  WebdavResource wdr = new WebdavResource(url);

  Enumeration resProp = wdr.propfindMethod(path, wdr.NAMES);
  while(resProp.hasMoreElements())
  {
      out.println(resProp.nextElement().toString());
  }

  wdr.close();


Is there any mistakes i've made in my code ?
Because i have tried to change propfindMethod's parameter with another
parameter, but it always returns same result..


Thanks..




--
Galih Hari Wibowo
Lab IBS - Teknik Informatika ITS


YM : gaLihhari
[EMAIL PROTECTED] : [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to