From f48bc4a8c9e1b22d01e5ad0c128ad9f23464cb41 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Wed, 5 May 2010 20:13:30 +0000 Subject: [PATCH] More anchor handling improvements: 1) escape '#' character as well as spaces. See virtual-hosting-howto.html for an example. 2) allow to explicitly specify anchor name, using anchor="" attribute on a (sub)section. See default-servlet.html for an example. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@941463 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/default-servlet.xml | 15 ++++-------- webapps/docs/tomcat-docs.xsl | 53 ++++++++++++++++++++++++++++------------ 2 files changed, 42 insertions(+), 26 deletions(-) diff --git a/webapps/docs/default-servlet.xml b/webapps/docs/default-servlet.xml index 9f6c92d66..1107f3f02 100644 --- a/webapps/docs/default-servlet.xml +++ b/webapps/docs/default-servlet.xml @@ -33,15 +33,13 @@ -
- +
The default servlet is the servlet which serves static resources as well as serves the directory listings (if directory listings are enabled).
-
- +
It is declared globally in $CATALINA_BASE/conf/web.xml. By default here is it's declaration: @@ -74,8 +72,7 @@ So by default, the default servlet is loaded at webapp startup and directory listings are enabled and debugging is turned off.
-
- +
The DefaultServlet allows the following initParamters: @@ -194,8 +191,7 @@ The DefaultServlet allows the following initParamters:
-
- +

You can override DefaultServlet with you own implementation and use that in your web.xml declaration. If you can understand what was just said, we will assume you can read the code @@ -313,8 +309,7 @@ The following is a sample xsl file which mimics the default tomcat behavior:

-
- +
Use web.xml in each individual webapp. See the security section of the Servlet specification. diff --git a/webapps/docs/tomcat-docs.xsl b/webapps/docs/tomcat-docs.xsl index 7497c4399..569fdb08e 100644 --- a/webapps/docs/tomcat-docs.xsl +++ b/webapps/docs/tomcat-docs.xsl @@ -187,10 +187,17 @@ - + + + + + + + + - + @@ -223,15 +230,22 @@ - - - - + + + + + + + + + + + - +
@@ -256,15 +270,22 @@ - - - - + + + + + + + + + + + - +
  • -- 2.11.0