ovidiu 02/05/01 18:06:32
Modified: src/scratchpad/schecoon/webapp/WEB-INF web.xml
Log:
Removed the Scheme evaluation Emacs servlet. Updated to the latest
version from the main Cocoon.
Revision Changes Path
1.3 +63 -72 xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/web.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- web.xml 21 Mar 2002 23:32:50 -0000 1.2
+++ web.xml 2 May 2002 01:06:32 -0000 1.3
@@ -57,24 +57,24 @@
</init-param>
<!--
- This parameter indicates the category id of the logger from the LogKit
- configuration used by the CocoonServlet.
+ This parameter indicates the category id of the logger from the LogKit
+ configuration used by the CocoonServlet.
-->
<init-param>
<param-name>servlet-logger</param-name>
- <param-value>root</param-value>
+ <param-value>access</param-value>
</init-param>
<!--
This parameter indicates the category id of the logger from the LogKit
management configuration for the Cocoon engine.
- This logger is used for all components described in the cocoon.xconf
- and sitemap.xmap file not having specified a logger with the
+ This logger is used for all components described in the cocoon.xconf
+ and sitemap.xmap file not having specified a logger with the
logger="..." attribute in the component configuration file.
-->
<init-param>
<param-name>cocoon-logger</param-name>
- <param-value>cocoon</param-value>
+ <param-value>core</param-value>
</init-param>
<!--
@@ -82,20 +82,20 @@
As soon as the logkit.xconf the setting of the logkit.xconf configuration is
used instead! Only for startup and if the logkit.xconf is not
readable/available
this log level is of importance.
-
+
Available levels are:
DEBUG: prints all level of log messages.
INFO: prints all level of log messages except DEBUG ones.
WARN: prints all level of log messages except DEBUG and INFO ones.
ERROR: prints all level of log messages except DEBUG, INFO and WARN
ones.
- FATAL-ERROR: prints only log messages of this level
+ FATAL_ERROR: prints only log messages of this level
-->
<init-param>
<param-name>log-level</param-name>
<param-value>DEBUG</param-value>
</init-param>
- <!--
+ <!--
Allow reinstantiating (reloading) of the cocoon instance. If this is
set to "yes" or "true", a new cocoon instance can be created using
the request parameter "cocoon-reload".
@@ -104,8 +104,8 @@
<param-name>allow-reload</param-name>
<param-value>yes</param-value>
</init-param>
-
- <!--
+
+ <!--
This parameter is used to list classes that should be loaded
at initialization time of the servlet.
Usually this classes are JDBC Drivers used
@@ -113,22 +113,22 @@
<init-param>
<param-name>load-class</param-name>
<param-value>
- <!-- For IBM WebSphere:
+ <!-- For IBM WebSphere:
com.ibm.servlet.classloader.Handler -->
<!-- For Database Driver: -->
@database-driver@
-
+
<!-- For parent ComponentManager sample:
org.apache.cocoon.samples.parentcm.Configurator
-->
</param-value>
</init-param>
-
- <!--
- This parameter allows to specify where Cocoon should put files
- which are uploaded by the upload.xsp sample. The path specified
- is always relative to the context path of the servlet.
+
+ <!--
+ This parameter allows to specify where Cocoon should put files
+ which are uploaded by the upload.xsp sample. The path specified
+ is always relative to the context path of the servlet.
The default directory is "upload-dir" in the work-directory
<init-param>
@@ -137,10 +137,10 @@
</init-param>
-->
- <!--
- This parameter allows to specify where Cocoon should put files
- which are cached by the storing class. The path specified
- is always relative to the context path of the servlet.
+ <!--
+ This parameter allows to specify where Cocoon should put files
+ which are cached by the storing class. The path specified
+ is always relative to the context path of the servlet.
The default directory is "cache-dir" in the work-directory
<init-param>
@@ -148,11 +148,11 @@
<param-value>/WEB-INF/work/cache-dir</param-value>
</init-param>
-->
-
- <!--
+
+ <!--
This parameter allows to specify where Cocoon should put it's
- working files. The path specified is always relative to the
- context path of the Cocoon servlet.
+ working files. The path specified is always relative to the
+ context path of the Cocoon servlet.
Usually it is obtained from the servlet engine.
<init-param>
@@ -183,8 +183,8 @@
Cocoon honors the Loggable and Initializable interfaces for this class,
if it implements them.
-
- If you uncomment the following lines the parent CM is set to the Parent CM
sample, which will look up
+
+ If you uncomment the following lines the parent CM is set to the Parent CM
sample, which will look up
a configuration via JNDI at
org/apache/cocoon/samples/parentcm/ParentCMConfiguration
and use it.
<init-param>
@@ -193,7 +193,17 @@
</init-param>
-->
- <!--
+ <!--
+ This parameter allows you to select the request factory. Possible choices are
as follows:
+ - org.apache.cocoon.components.request.MultipartRequestFactoryImpl
+ - org.apache.cocoon.components.request.MaybeUploadRequestFactoryImpl
+ -->
+ <init-param>
+ <param-name>request-factory</param-name>
+
<param-value>org.apache.cocoon.components.request.MultipartRequestFactoryImpl</param-value>
+ </init-param>
+
+ <!--
If you set this parameter to 'true' or 'yes', Cocoon will add processing
time to the end of each response. Value 'hide' adds processing time as an HTML
comment. By default, processing time is not added (corresponds to value 'no').
@@ -211,55 +221,36 @@
<load-on-startup>1</load-on-startup>
</servlet>
-
- <servlet>
- <servlet-name>SchecoonEval</servlet-name>
- <display-name>Schecoon Interactive Evaluator</display-name>
- <description>The main Schecoon servlet</description>
-
- <servlet-class>org.apache.cocoon.scheme.servlet.REPLEvalServlet</servlet-class>
-
- <init-param>
- <param-name>enabled</param-name>
- <param-value>true</param-value>
- </init-param>
-
- <init-param>
- <param-name>heap</param-name>
- <param-value>schecoon.heap</param-value>
- </init-param>
-
- </servlet>
-
-
<!--
- Servlet mappings
- -->
-
+ Cocoon handles all the URL space assigned to the webapp using its sitemap.
+ It is recommended to leave it unchanged. Under some circumstances though
+ (like integration with proprietary webapps or servlets) you might have
+ to change this parameter.
+ -->
<servlet-mapping>
<servlet-name>Cocoon2</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
-
+ <!--
+ Some servlet engines (Tomcat) have defaults which are not overriden
+ by '/' mapping, but must be overriden explicitly.
+ -->
<servlet-mapping>
- <servlet-name>SchecoonEval</servlet-name>
- <url-pattern>/eval/*</url-pattern>
+ <servlet-name>Cocoon2</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>Protected Area</web-resource-name>
- <url-pattern>/eval/*</url-pattern>
- <http-method>POST</http-method>
- </web-resource-collection>
- <auth-constraint>
- <role-name>cocoon_admin</role-name>
- </auth-constraint>
- </security-constraint>
-
- <login-config>
- <auth-method>BASIC</auth-method>
- <realm-name>Admin</realm-name>
- </login-config>
+ <!--
+ Some servlet engines (WebLogic) have defaults which are not overriden
+ by '/' mapping, but must be overriden explicitly.
+ -->
+ <servlet-mapping>
+ <servlet-name>Cocoon2</servlet-name>
+ <url-pattern>*.html</url-pattern>
+ </servlet-mapping>
+
+ <mime-mapping>
+ <extension>css</extension>
+ <mime-type>text/css</mime-type>
+ </mime-mapping>
</web-app>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]