Thanks a lot. The binding is an extension of the standard store ? Still compatible with versioning ?
-----Message d'origine----- De�: Paul Hussein [mailto:[EMAIL PROTECTED] Envoy�: lundi 9 mai 2005 12:45 ��: Slide Users Mailing List Objet�: Re: bind example ? oops, sorry http://wiki.apache.org/jakarta-slide/BindingDemo Did you switch on binding as in the wiki? // ooooh binding stuff // from = the file to that we link to // to = the item to contain the link // name = the name for the link public boolean bind (String from, String to, String name ) throws IOException { String savePath = null; String target = null; try { savePath = this.webdavResource.getPath (); this.setPath (to); System.out.println ("Util.bind : binding : " + from + " to " + to ); target = normalize (ROOT_PATH + "/" + from + "/" + name ); return this.webdavResource.bindMethod (target); } catch (Throwable t) { System.err.println ( "Utils.bind : " + t.toString ( ) ); t.printStackTrace ( System.err ); return false; } finally { // restore path this.webdavResource.setPath (savePath); } } Laurent Michenaud wrote: >I can't find it, are u sure ? > >-----Message d'origine----- >De : Paul Hussein [mailto:[EMAIL PROTECTED] >Envoy� : lundi 9 mai 2005 11:45 >� : Slide Users Mailing List >Objet : Re: bind example ? > >There is example code in the slide client > > > > > > > > > > > > > > >Laurent Michenaud wrote: > > > >>Has anybody a bind example ? >> >> >> >>I've tried to use it. In the tomcat console, I can see a successful >>creation message >> >>but I can't see it anywhere. >> >> >> >>HttpURL oHttpURL = new HttpURL("http://" + SLIDE_HOST + ":" + SLIDE_PORT >>+ SLIDE_DOMAIN); >> >>oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); >> >>WebdavResource oWebdavResource = new WebdavResource(oHttpURL); >> >>oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT); >> >>try { >> >> r_bSuccess = oWebdavResource.bindMethod("/slide/files/test", >> >> "/slide/files/lien"); >> >> oWebdavResource.commitTransaction(); >> >>} catch( Exception e ) { >> >> oWebdavResource.abortTransaction(); >> >>} >> >>finally { >> >> oWebdavResource.close(); >> >>} >> >> >> >>In the console, I can see : >> >>http-8080-Processor21, 09-mai-2005 11:41:01, root, BIND, 201 "Created", >>0 ms, /files >> >>taille du doc : 112 >> >> >> >> >> >>Any idea ? >> >> >> >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
