Demo Home
Demo Web Application Only - Do NOT Deploy in Production

Servlet 5.0 Demo WebApp

This example tests some aspects of the servlet specification:

The source repository for this test is available here.

Test Defaults, Annotations, Fragments and Initializers

Test Dynamically Added Jsp File

Click the link to test accessing a programmatically added jsp file

Dynamically added jsp

Test Static Content from Fragment

Click the link to test accessing static content from a fragment's META-INF/resources

Static resource from a fragment

Test Servlet from Fragment

Click the link to test accessing a servlet added from a fragment's web-fragment.xml

Servlet added by web-fragment.xml

Test DeclaresRoles

Login as user admin with password admin when prompted after clicking the button below to test @DeclareRoles annotation

Test Servlet Security

Login as user admin with password admin when prompted after clicking the button below to test @ServletSecurity annotation

Test Servlet Multipart Mime

Test of the annotation:
@MultipartConfig(location="foo/bar", maxFileSize=10240, maxRequestSize=-1, fileSizeThreshold=2048)
File to upload:

AsyncListener Resource Injection

Click the following link to test that jakarta.servlet.AsyncListeners are injectable

Test ClassPath Isolation

Click the link to test classpath isolation of system and server classes

ClassPathServlet