Test Specification WebApp

Demo Home

Test Web Application Only - Do NOT Deploy in Production

# Servlet 3.1 Test WebApp

This example tests some aspects of the servlet 3.1 specification:

- servlet annotations
- web-fragments
- servlet container initializers.
- multi-part upload support.

The source repository for this test is available here.

### Test Servlet 2.5/3.0 Annotations, Fragments and Initializers

### 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 3.0 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 javax.servlet.AsyncListeners are injectable

### Test ClassPath Isolation

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

ClassPathServlet