Raman Sandhu <raman.sandhu <at> adeptia.com> writes: > > Hi Hima > > How are you putting files in version control. Can you send me sample code. > > Thanks > Raman > > -----Original Message----- > From: Hima [mailto:hima19 <at> yahoo.com] > Sent: Wednesday, June 15, 2005 5:25 PM > To: Slide > Subject: History of Files > > Hi all! > > My problem has been solved now.Getting the versions of > files.My problem is > now ..how to view the history of files versioned?Like > for example > /files/myFile is versioned. > /history/1 is the location of the history of > /files/myFile. > But when I click on slide/history/1 it is giving error > message saying > > HTTP Status 404 - Not Found: Revision 0.0 of object > /history/1 not found > > I can view them in My NetworkPlaces "Slide on > LocalHost" at > http://localhost:8080/slide/history/1 but can not > see them when running > slide.What might be the problem?Any help on this will > be greatful... > > Thanks > HimaBindu
Hi Raman I have used org.apache.webdav.lib.WebdavResource for cteating the files..code looks like this... HttpURL homeUrl = new HttpURL("http://localhost:8080/slide/files"); homeUrl.setUserinfo("root","root"); res = new WebdavResource(homeUrl); boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data "); I have set <parameter name="auto-version-control">true</parameter> in Domain.xml.When I see the file in DAV Explorer,it is said that the file has been kept in Version Control. I have updated the file twice by executing the same code with different content data like boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data updated once"); boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data updated twice"); Now when I see the Version Report of that file in DAVExplorer,it is giving information like version author Date Size Checked-in comment 1.0 root --- 10 INITIAL VERSION 1.1 root --- 23 1.2 root --- 37 and in the directory "slide/history/1" of DAVExplorer I can see similar type of information. I can view them at My NetworkPlaces "Slide on LocalHost" at http://localhost:8080/slide/history/1 .There I can see all the three versioned files with display name "testFile1" with their contents at /slide/history/1/1.2 , /slide/history/1/1.1 and /slide/history/1/1.0 respt....But can not see them when running slide. I will be thankfull if u could help me on this.. Thanks HimaBindu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]