# Jetty Web Application

This demonstration is created using the webapplication in `demo/webapps/jetty`. By convention the webapplications that Jetty use are placed in `webapps` directory either as packed war files or as unpacked directories. The `etc/jetty.xml` configuraton file can be used to run any webapp found in the `webapps` directory.

### Miscellaneous Demos

Request Dump Servlet.
Session Dump Servlet.
SendRedirect Form.

### Java Server Pages

JSP Snoop Demo
Mapped JSP Snoop Demo

### Request Dispatchers

RequestDispatcher: forward to Dump servlet.
RequestDispatcher: forward to static image.
RequestDispatcher: forward to named Dump servlet.
RequestDispatcher: forward to snoop.jsp.

RequestDispatcher: include of Dump servlet.
RequestDispatcher: include static file.
RequestDispatcher: include of named Dump servlet.
RequestDispatcher: include snoop.jsp.

RequestDispatcher: Forward to another web application.

### Security

This security demo can be configured for FORM, BASIC or DIGEST authentication in the `demo/webapps/jetty/WEB-INF/web.xml` file.

Security Constraint Any role user=jetty password=jetty
Security Constraint Admin role user=admin password=admin
Security Constraint Relaxed constraint, using transport guarentee = NONE
Security Constraint No access.

### Error Pages

Error Page Custom page for 404 status.
Error Page Custom page for NullPointerException.

### Reference Web Applications

Servlet examples from the Apache Jakarta.
JSP examples from the Apache Jakarta.