You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Harding, Christopher (Student Assistant)" <Ch...@softwareag.com> on 2001/06/19 09:13:34 UTC
RE: HttpMethods
Hello,
If you use the PUT method on a file say, foo.txt. I would set the URL as
/slide/files/foo.txt, where /slide is the name of the Servlet, and /files is
the name of the FileStore as defined in the Domain.xml file. You'll get the
403 (I have anyway) if you miss the /slide from the URL.
Hope this was some help.
Chris Harding
-----Original Message-----
From: Vijaya Kumar [mailto:vijayakumar.ellappan@businex.com]
Sent: 20 June 2001 09:07
To: Remy Maucherat
Cc: slide-dev@jakarta.apache.org
Subject: HttpMethods
Hi,
I have the following doubts in mind. Can u clear them. Plz.
1. How to avoid the 403 Forbidden error message
2. Where actualy the CopyMethod, PutMethod are storing the value
3. Is it possible to Upload the file to the server using servlet.
I actually call the req.getPathTranslated() which gives the URL of
the servlet and remove the servlet name and then attach the name where we
need to store the file
4. Where can I use Slide for this purpose. Is it possible
Rgds
Vijay
Re: HttpMethods
Posted by Vijaya Kumar <vi...@businex.com>.
Hi,
Thanx and I got something. Here I attach me Domain.xml and Web.xml with Java file.
Can u review them and tell where I went wrong.
The option in contentstore rootpath --> c:/files creates the files folder but it doesn't create the folder in server side say
<namespace name=slide>
<store name="reference"> // Is it correct name=reference or always memory
<contentstore name="files" className="slidestore.reference.FileContentStore">
<parameter name="rootpath">/files</parameter> // Doesn't create a folder at the server side where it does in local drive
</contentstore>
</store>
<scope match="/" store="reference">
...
Actually these xml files or stored in the /webapps/Slide, and /webapps/Slide/WEB-INF/ respectively.
But the servlet that call this PutMethod is in the /webapps/vijay/servlet/slidetest Is it correct.
----- Original Message -----
From: Harding, Christopher (Student Assistant)
To: 'slide-dev@jakarta.apache.org'
Sent: Tuesday, June 19, 2001 12:43 PM
Subject: RE: HttpMethods
Hello,
If you use the PUT method on a file say, foo.txt. I would set the URL as /slide/files/foo.txt, where /slide is the name of the Servlet, and /files is the name of the FileStore as defined in the Domain.xml file. You'll get the 403 (I have anyway) if you miss the /slide from the URL.
Hope this was some help.
Chris Harding
-----Original Message-----
From: Vijaya Kumar [mailto:vijayakumar.ellappan@businex.com]
Sent: 20 June 2001 09:07
To: Remy Maucherat
Cc: slide-dev@jakarta.apache.org
Subject: HttpMethods
Hi,
I have the following doubts in mind. Can u clear them. Plz.
1. How to avoid the 403 Forbidden error message
2. Where actualy the CopyMethod, PutMethod are storing the value
3. Is it possible to Upload the file to the server using servlet.
I actually call the req.getPathTranslated() which gives the URL of the servlet and remove the servlet name and then attach the name where we need to store the file
4. Where can I use Slide for this purpose. Is it possible
Rgds
Vijay