| 1 |
<HTML> |
| 2 |
<HEAD> |
| 3 |
<TITLE>Test Specification WebApp</TITLE> |
| 4 |
<META http-equiv="Pragma" content="no-cache"> |
| 5 |
<META http-equiv="Cache-Control" content="no-cache,no-store"> |
| 6 |
<link rel="stylesheet" type="text/css" href="stylesheet.css"/> |
| 7 |
</HEAD> |
| 8 |
<BODY > |
| 9 |
<A HREF="https://jetty.org/"><IMG SRC="images/jetty_banner.gif"></A> |
| 10 |
<br/> |
| 11 |
<b><a href="http://localhost:8080/">Demo Home</a></b> |
| 12 |
<hr/> |
| 13 |
<center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center> |
| 14 |
|
| 15 |
<h1>Servlet 3.1 Test WebApp</h1> |
| 16 |
|
| 17 |
<p> |
| 18 |
This example tests some aspects of the servlet 3.1 specification:<ul> |
| 19 |
<li>servlet annotations |
| 20 |
<li>web-fragments |
| 21 |
<li>servlet container initializers. |
| 22 |
<li>multi-part upload support. |
| 23 |
</ul> |
| 24 |
The source repository for this test is available <a href="https://github.com/jetty/jetty.project/tree/jetty-9.4.x/tests/test-webapps/test-servlet-spec/test-spec-webapp">here</a>. |
| 25 |
</p> |
| 26 |
|
| 27 |
<h3>Test Servlet 2.5/3.0 Annotations, Fragments and Initializers</h3> |
| 28 |
<form action="test" method="post"> |
| 29 |
<button type="submit">Test</button> |
| 30 |
</form> |
| 31 |
|
| 32 |
<h3>Test Static Content from Fragment </h3> |
| 33 |
<p>Click the link to test accessing static content from a fragment's META-INF/resources</p> |
| 34 |
<a href="fragmentA/index.html">Static resource from a fragment </a> |
| 35 |
|
| 36 |
<h3>Test Servlet from Fragment </h3> |
| 37 |
<p>Click the link to test accessing a servlet added from a fragment's web-fragment.xml</p> |
| 38 |
<a href="fragment">Servlet added by web-fragment.xml</a> |
| 39 |
|
| 40 |
<h3>Test DeclaresRoles</h3> |
| 41 |
<p>Login as user <code>admin</code> with password <code>admin</code> when prompted after clicking the button below to test @DeclareRoles annotation</p> |
| 42 |
<form action="role" method="post"> |
| 43 |
<button type="submit">Test Role Annotations</button> |
| 44 |
</form> |
| 45 |
|
| 46 |
<h3>Test Servlet Security</h3> |
| 47 |
<p>Login as user <code>admin</code> with password <code>admin</code> when prompted after clicking the button below to test @ServletSecurity annotation</p> |
| 48 |
<form action="sec/foo" method="post"> |
| 49 |
<button type="submit">Test ServletSecurity Annotation</button> |
| 50 |
</form> |
| 51 |
|
| 52 |
<h3>Test Servlet 3.0 Multipart Mime</h3> |
| 53 |
Test of the annotation: |
| 54 |
<pre> |
| 55 |
@MultipartConfig(location="foo/bar", maxFileSize=10240, maxRequestSize=-1, fileSizeThreshold=2048) |
| 56 |
</pre> |
| 57 |
<form ENCTYPE="multipart/form-data" ACTION="multi" METHOD=POST> |
| 58 |
File to upload: <INPUT NAME="userfile1" TYPE="file"> |
| 59 |
<input TYPE="submit" VALUE="Test Upload"> |
| 60 |
</form> |
| 61 |
|
| 62 |
<h3>AsyncListener Resource Injection</h3> |
| 63 |
<p>Click the following link to test that javax.servlet.AsyncListeners are injectable</p> |
| 64 |
<form action="asy/xx" method="post"> |
| 65 |
<button type="submit">Test AsyncListener</button> |
| 66 |
</form> |
| 67 |
|
| 68 |
<h3>Test ClassPath Isolation </h3> |
| 69 |
<p>Click the link to test classpath isolation of system and server classes</p> |
| 70 |
<a href="classloader">ClassPathServlet</a> |
| 71 |
|
| 72 |
<div style="text-align: center;"> |
| 73 |
<hr/> |
| 74 |
<a href="https://jetty.org/"><img style="border:0" src="images/small_powered_by.gif"/></a> |
| 75 |
</div> |
| 76 |
|
| 77 |
</BODY> |
| 78 |
</HTML> |