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 gaLihhari <ga...@inf.its-sby.edu> on 2005/07/03 20:51:31 UTC

Problem in retrieving property name

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
Em@il : gaLihhari@inf.its-sby.edu

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