Servlet 5.0 Demo WebApp
This example tests some aspects of the servlet specification:
- context defaults
- servlet annotations
- web-fragments
- servlet container initializers
- multi-part upload support
Test Defaults, Annotations, Fragments and Initializers
Test Dynamically Added JSP File
Click the link to test accessing a programmatically added jsp file:
Dynamically added jspTest Static Content from Fragment
Click the link to test accessing static content from a fragment's META-INF/resources:
Static resource from a fragmentTest Servlet from Fragment
Click the link to test accessing a servlet added from a fragment's web-fragment.xml:
Servlet added by web-fragment.xmlTest 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 the annotation:@MultipartConfig(location="foo/bar", maxFileSize=10240, maxRequestSize=-1, fileSizeThreshold=2048)
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