The get methods seem to work, but do the put and mkCol methods work?  So
far, they just return false - no exceptions, just false.

-Mike

On Thu, 2004-06-24 at 18:25, James Mason wrote:
> Brad,
> Take a look at the WebdavResource.getMethod* methods. There are various
> options depending on what you want to do with the data.
> 
> Also, the code for org.apache.webdav.cmd.Client is a useful reference
> for most webdav tasks. You'll need the Slide client source download to
> see it.
> 
> -James
> 
> >>> [EMAIL PROTECTED] 6/24/2004 3:12:23 PM >>>
> 
> Okay.  I have a Java Servlet that spits out information about a file
> in
> a directory, example:
> Current Path is: /slide/files/BradSimonin
> 
> Now.  I have a file call Brad.html inside that directory (BradSimonin)
> and I would like the Java Servlet to spit out the HTML code that is in
> Brad.html.  But I am not exactly sure how to do this.  In normal world
> I
> would use other Java ability like the followoing to do this:
>  
> HTTPSite = new
> String("http://webdev/IntranetData/DynamicIntranetIncludes/Brad.html";);
> TheURL = new URL(HTTPSite);
> TheWebSite = new BufferedReader(new
> InputStreamReader(TheURL.openStream()));
>  
> And then read one line at a time and spit out the HTML code in
> Brad.html.
> 
> But how can I do that using the slide client API's.  I didn't see any
> in
> there that could do what I want.
> 
> Any help would be greatly appreciated.
> 
> --Brad.
> 
>  
> 
> -----Original Message-----
> From: James Mason [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 23, 2004 2:48 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: Example Java Servlets for accessing data in Slide?
> 
> Happy to help :). Good luck and happy hacking.
> 
> -James
> 
> >>> [EMAIL PROTECTED] 6/23/2004 1:44:12 PM >>>
> I can't thank you enough James. Thank you for pointing me in the right
> direction. Your help is greatly appreciated!!!
> 
> --Brad. 
> 
> -----Original Message-----
> From: James Mason [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 23, 2004 2:30 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: Example Java Servlets for accessing data in Slide?
> 
> Well, common/lib has a bunch of jar files that are Tomcat specific
> (you
> don't need those). And anyway, if you're talking about a client
> program
> here you want the jar files from the client download (Tomcat is the
> server download).
> 
> For a client you'll need the webdavlib jar and httpclient jar (you may
> also need commons-logging). Check the javadoc:
> http://jakarta.apache.org/slide/clientjavadoc/index.html to see which
> packages to import. Choose the name of the class from the left and the
> package will be first line after the navigation header.
> 
> For server Slide programs the easiest way to get a list of jars is to
> grab the webapp download and look in the lib directory. For compiling
> you'll probably only need the jar files with "slide" in the name, but
> you'll need all the others to run the program.
> 
> -James
> 
> >>> [EMAIL PROTECTED] 6/23/2004 12:01:52 PM >>>
> You mean like install ALL the jar files from the following directory:
> C:\Program Files\Apache
> Group\jakarta-slide-2.0-tomcat-5.0.19\common\lib
> Directory?
> 
> I am trying to do it the old-fashion way with ant from the command
> line.
> Even if I did have the correct jar file what would I add to the
> following:
> 
> import java.sql.*;
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> Just curious. 
> 
> --Brad
> 
> ---------------------------------------------------------------------
> 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]
-- 
Michael Stover <[EMAIL PROTECTED]>
Apache Software Foundation


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

Reply via email to