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 "Pan, Jiantao" <ji...@labbook.com> on 2001/01/29 17:07:51 UTC
PropFind and Name space support question on slide
Morning,
Has anybody worked on find properties in a different namespace using
propfind?
I am using slide1.0m5.
I tried the testing code like the following, Seems it can not find the
"z39.50:author" property
Any suggestions?
Thanks
Code like:
Vector property = new Vector();
property.addElement("displayname");
property.addElement("getcontentlength");
property.addElement("resourcetype");
property.addElement("getlastmodified");
property.addElement("getcontenttype");
property.addElement("z39.50:author");
String path = "/slide/files/";
PropFindMethod pf = new PropFindMethod(path,property.elements());
client.executeMethod( pf );
The reply is like the following:
<response>
<href>/slide/files/API.html</href>
<propstat>
<prop>
<displayname>/files/API.html</displayname>
<getcontentlength>8307</getcontentlength>
<resourcetype></resourcetype>
<getlastmodified>Mon Jan 22 15:14:29 EST 20</getlastmodified>
<getcontenttype>text/html</getcontenttype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<author></author>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat> </response>
Re: PropFind and Name space support question on slide
Posted by Remy Maucherat <re...@apache.org>.
> Morning,
> Has anybody worked on find properties in a different namespace using
> propfind?
> I am using slide1.0m5.
> I tried the testing code like the following, Seems it can not find the
> "z39.50:author" property
> Any suggestions?
> Thanks
>
> Code like:
>
> Vector property = new Vector();
> property.addElement("displayname");
> property.addElement("getcontentlength");
> property.addElement("resourcetype");
> property.addElement("getlastmodified");
> property.addElement("getcontenttype");
> property.addElement("z39.50:author");
> String path = "/slide/files/";
> PropFindMethod pf = new
PropFindMethod(path,property.elements());
> client.executeMethod( pf );
I think the full name of the property is : namespaceName + propertyName.
Don't append ':' in between. ':' is used only if you declare an
abbreviation.
Remy