~ubuntu-branches/ubuntu/oneiric/tomcat6/oneiric

« back to all changes in this revision

Viewing changes to webapps/docs/default-servlet.xml

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2010-07-20 14:36:48 UTC
  • mfrom: (2.2.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100720143648-23y81x6cq1kv1z00
Tags: 6.0.28-2
* Add debconf questions for user, group and Java options.
* Use ucf to install /etc/default/tomcat6 from a template
* Drop CATALINA_BASE and CATALINA_HOME from /etc/default/tomcat6 since we
  shouldn't encourage users to change those anyway

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
<toc/>
34
34
</section>
35
35
 
36
 
<section name="What is the DefaultServlet">
37
 
<a name="what"></a>
 
36
<section anchor="what" name="What is the DefaultServlet">
38
37
The default servlet is the servlet which serves static resources as well
39
38
as serves the directory listings (if directory listings are enabled).
40
39
 
41
40
</section>
42
41
 
43
 
<section name="Where is it declared?">
44
 
<a name="where"></a>
 
42
<section anchor="where" name="Where is it declared?">
45
43
It is declared globally in <i>$CATALINA_BASE/conf/web.xml</i>.
46
44
By default here is it's declaration:
47
45
<source>
74
72
directory listings are enabled and debugging is turned off.
75
73
</section>
76
74
 
77
 
<section name="What can I change?">
78
 
<a name="change"></a>
 
75
<section anchor="change" name="What can I change?">
79
76
The DefaultServlet allows the following initParamters:
80
77
 
81
78
<table border="1">
194
191
</table>
195
192
</section>
196
193
 
197
 
<section name="How do I customize directory listings?">
198
 
<a name="dir"></a>
 
194
<section anchor="dir" name="How do I customize directory listings?">
199
195
<p>You can override DefaultServlet with you own implementation and use that
200
196
in your web.xml declaration. If you
201
197
can understand what was just said, we will assume you can read the code
313
309
 
314
310
</section>
315
311
 
316
 
<section name="How do I secure directory listings?">
317
 
<a name="secure"></a>
 
312
<section anchor="secure" name="How do I secure directory listings?">
318
313
Use web.xml in each individual webapp. See the security section of the
319
314
Servlet specification.
320
315