I have been tasked with giving a presentation on Jakata Slide, and was
wondering if anyone new of any decent tutorial out there reguarding
Slide(usage and setup). All I have managed to find is a single chapter in a
book, and a couple of website, that merely brush the surface and are not too
instructive. Why is this the case this technology has been availavble for
around 5 years now?
Iv written a piece of code that tries to put a file onto slide, but i am
geting this: "http8080-Processor24, 17-Jun-2004 11:30:10, root, PUT, 403
"Forbidden", 15 ms, /". What am i doing wroug and when the files are
uploaded to slide where will they exist(or referenced) in the app server?
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import org.apache.commons.httpclient.HttpException;
import org.apache.util.HttpURL;
import org.apache.webdav.lib.WebdavResource;
public class SlideTest {
public static void main (String args[])
{
try
{
HttpURL hrl = new HttpURL("http://localhost:8080/slide/");
hrl.setUserInfo("root","root");
WebdavResource wdr =new WebdavResource(hrl);
File fn = new File("C:\\Documents and Settings\\dg\\My
Documents\\g.txt");
wdr.putMethod(fn);
System.out.println(wdr.getStatusMessage());
//File fn2 = new File("C:\\Documents and Settings\\dg\\My
Documents\\b.txt");
//wdr.getMethod(fn2);
wdr.close();
}
catch(MalformedURLException mue)
{
}
catch(HttpException he)
{
}
catch(IOException ioe)
{
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]