Hello,
Here are some basic/stupid questions about JWSDK 1.0-ea settings:
I would like to use a jared servlet with JWSDK 1.0-ea, this servlet having
a properties to be set
1) How must I set up the new "Webapp" ?
=======================================
from the doc (in default.cfg):
//-----
# All sections of the server's namespace are defined in terms of
# a 'webapp'. There are two attributes that define a webapp, 1)
# a mapping of where the webapp is placed into the namespace of
# the server and 2) the base of the webapp. The base can be composed
# of a simple string as shown below which indicates a file
# relative to the current working directory (the directory in which
# the server was started) or can be a full URL.
server.webapp.examples.mapping=/examples
server.webapp.examples.docbase=examples
//--------
Perhaps I'm stupid but I don't understand this. More precisely I don't
understand was is "examples" in the line
"server.webapp.examples.docbase=examples". The doc says "The base can be
composed of a simple string as shown below which indicates a file relative
to the current working directory (the directory in which the server was
started)" but there is NO file named "examples" in the install there is
only a directory.
I've added the following lines to my default.cfg:
server.webapp.luc.mapping=/TEST
server.webapp.luc.docbase=TEST
And placed some jsp and HTML files in a <JWSDK1.0-ea_HOME>/TEST directory
(so at the root level like the original examples directory)
I can access my files with
http://127.0.0.1/TEST/myfile.jsp
but not with
http://127.0.0.1/luc/myfile.jsp
2) Which files are mandatory in a Webapp and where must I place them ?
======================================================================
I would like to use a jared servlet (cocoon in fact) in a Webapp that is in
a TEST directory.
Where must I place the cocoon.jar file ?
At the root level of my TEST directory ?
In the Web-INF directory ?
Is this Web-INF directory a mandatory member of a Webapp?
I seem to have understood that the servlets properties are set up in the
"servlets.properties" file in the Web-INF directory, is it true, can this
be placed elsewhere ?
If it is true, how can I access my jared servlet from another Webapp ? does
that mean that I need a version of the same jared servlet for each of my
Webapps ?
Thanks in advance
+------------------------------------------------+
| Luc Saint-Elie |
| 75018 Paris France |
| Tel: 1(212)894 3713 ext: 0012 |
| email : [EMAIL PROTECTED] |
+------------------------------------------------+
| Java Server Side Open Source technologies |
| http://www.interpasnet.com/JSS |
+------------------------------------------------+
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".