Servlet and JSP Examples.
Servlet and JSP Examples
Timing Filter
filters.ExampleFilter
attribute
filters.ExampleFilter
Request Dumper Filter
org.apache.catalina.filters.RequestDumperFilter
Set Character Encoding
org.apache.catalina.filters.SetCharacterEncodingFilter
true
encoding
UTF-8
ignore
false
Compression Filter
compressionFilters.CompressionFilter
compressionThreshold
128
compressionBuffer
8192
compressionMimeTypes
text/html,text/plain,text/xml
debug
0
Set Character Encoding
/*
listeners.ContextListener
listeners.SessionListener
async.AsyncStockContextListener
ServletToJsp
ServletToJsp
ChatServlet
chat.ChatServlet
CompressionFilterTestServlet
compressionFilters.CompressionFilterTestServlet
HelloWorldExample
HelloWorldExample
RequestInfoExample
RequestInfoExample
RequestHeaderExample
RequestHeaderExample
RequestParamExample
RequestParamExample
CookieExample
CookieExample
SessionExample
SessionExample
ChatServlet
/servlets/chat/chat
CompressionFilterTestServlet
/CompressionTest
HelloWorldExample
/servlets/servlet/HelloWorldExample
RequestInfoExample
/servlets/servlet/RequestInfoExample/*
RequestHeaderExample
/servlets/servlet/RequestHeaderExample
RequestParamExample
/servlets/servlet/RequestParamExample
CookieExample
/servlets/servlet/CookieExample
SessionExample
/servlets/servlet/SessionExample
ServletToJsp
/servletToJsp
http://tomcat.apache.org/debug-taglib
/WEB-INF/jsp/debug-taglib.tld
http://tomcat.apache.org/example-taglib
/WEB-INF/jsp/example-taglib.tld
http://tomcat.apache.org/jsp2-example-taglib
/WEB-INF/jsp2/jsp2-example-taglib.tld
Special property group for JSP Configuration JSP example.
JSPConfiguration
/jsp/jsp2/misc/config.jsp
true
ISO-8859-1
true
/jsp/jsp2/misc/prelude.jspf
/jsp/jsp2/misc/coda.jspf
Example Security Constraint - part 1
Protected Area - Allow methods
/jsp/security/protected/*
DELETE
GET
POST
PUT
tomcat
role1
Example Security Constraint - part 2
Protected Area - Deny methods
/jsp/security/protected/*
DELETE
GET
POST
PUT
FORM
Example Form-Based Authentication Area
/jsp/security/protected/login.jsp
/jsp/security/protected/error.jsp
role1
tomcat
minExemptions
java.lang.Integer
1
foo/name1
java.lang.String
value1
foo/bar/name2
java.lang.Boolean
true
name3
java.lang.Integer
1
foo/name4
java.lang.Integer
10
async0
async.Async0
true
async0
/async/async0
async1
async.Async1
true
async1
/async/async1
async2
async.Async2
true
async2
/async/async2
async3
async.Async3
true
async3
/async/async3
stock
async.AsyncStockServlet
true
stock
/async/stockticker
bytecounter
nonblocking.ByteCounter
true
bytecounter
/servlets/nonblocking/bytecounter
numberwriter
nonblocking.NumberWriter
true
numberwriter
/servlets/nonblocking/numberwriter
index.html
index.xhtml
index.htm
index.jsp
websocket.drawboard.DrawboardContextListener