O'Reilly logo

Tomcat 6 Developer's Guide by Damodar Chetty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Examples

The following servlets demonstrate the servlet and wrapper mechanisms.

Servlets

These servlets build on the example created for the last chapter. As a result, you should simply include the following classes, static files, and declarations in the example from the preceding chapter.

Note

Do check out the 'Request Info' servlet from the examples web application at http://localhost:8080/examples/servlets/servlet/RequestInfoExample. This is an example of wildcard-based matching, and you can experiment with it by providing additional information at the end of the request URI. For example, http://localhost:8080/examples/servlets/servlet/RequestInfoExample/path/info.

Declaration

The following servlet elements are added to the web deployment descriptor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required