|
>From personal Experience I found it easier to create a separate folder to store
the files, I had trouble storing files on the "/" directory.
The way I have it is like this
<store
name="files"> <contentstore
name="files" classname="slidestore.reference.FileContentStore">
<parameter
name="rootpath">c:/files</parameter> //This is where all the
files are stored locally on your
HDD.
</contentstore>
</store>
<scope match="/files"
store="files"> //Maps '/files' in WebFolders to the files
store
<objectnode
classname="org.apache.slide.structure.SubjectNode"
uri="/files"> </objectnode>
//This is the bit that creates the /files in the WebFolder
Hope this helps a bit, I'm running a slightly out of date version of Slide and
this is based on the Domain.xml file I use, so I'm very sorry if this is no
longer used.
Chris
Harding
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 -----
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:[EMAIL PROTECTED]] Sent: 20 June 2001
09:07 To: Remy Maucherat Cc:
[EMAIL PROTECTED] 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
|