minor text cleanups in demo webapps

This commit is contained in:
Greg Wilkins 2013-09-13 15:51:55 +10:00
parent bb8d8fb999
commit a2a475b4af
5 changed files with 71 additions and 64 deletions

View File

@ -7,43 +7,36 @@
</HEAD>
<BODY>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<p>&nbsp;</p>
<a href="http://localhost:8080/">Home</a>
<center>
<br/>
<b><a href="http://localhost:8080/">Demo Home</a></b>
<hr/>
<span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span>
</center>
<center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center>
<H1>JAAS Authentication and Authorization Demo </H1>
<h2>Preparation</h2>
<p>To enable JAAS, edit your start.ini or start.d/*.ini files and add the following lines:
<p>To enable JAAS in a base jetty instance do:
<pre>
OPTIONS=jaas
jaas.login.conf=etc/login.conf
etc/jetty-jaas.xml
$ cd $JETTY_BASE
$ java -jar $JETTY_HOME/start.jar --module-startd-ini=jaas
</pre>
</p>
<p>For the jetty distribution demos, jaas is already enabled in the demo-base/start.ini file and sets the jaas.login.conf property to ${jetty.base}/etc/login.conf for use with the demo-base/webapps/test-jaas.war web application. </p>
<p>This will create a $JETTY_BASE/start.d/jaas.ini file to enable and parameterise JAAS. If the --module-start-ini option instead, then the same initialisation will be appended to the
$JETTY_BASE/start.ini file instead. The jetty demo-base already has JAAS enabled in the start.ini file. </p>
<p>The full source of this demonstration is available <a
href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/tests/test-webapps/test-jaas-webapp">here</a>.</p>
<h2>Using the Demo</h2>
<P>
Click on the following link to test JAAS <i>authentication</i> and role-based web security constraint <i>authorization</i>.
Click on the link below to test JAAS <i>authentication</i> and role-based web security constraint <i>authorization</i>. Use username=&quot;me&quot; with password=&quot;me&quot;. All other usernames, passwords should result in authentication failure.
</P>
<big><b><A HREF="auth.html">LOGIN</A></b></big>
<p>
This demo uses a simple login module that stores its configuration in a properties file. There are other types of login module provided with the jetty distro. For full information, please refer to the <a href="http://www.eclipse.org/jetty/documentation/current/">Jetty 9 documentation</a>.
</p>
<P>
To authenticate successfully with this demonstration, you must use username=&quot;me&quot; with password=&quot;me&quot;. All other usernames, passwords should result in authentication failure.
</P>
<A HREF="auth.html">Login</A>
<center>
<hr/>
<a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a>
</center>
<hr/>
<center> <a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a></center>
</BODY>
</HTML>

View File

@ -10,29 +10,53 @@
</style>
</HEAD>
<BODY>
<A HREF="http://jetty.eclipse.org"><IMG SRC="jetty_banner.gif"></A>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="jetty_banner.gif"></A>
<br/>
<b><a href="http://localhost:8080/">Demo Home</a></b>
<hr/>
<center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center>
<h1>Welcome to Jetty 9</h1>
<p>
This is the Test webapp for the Jetty 9 HTTP Server and Servlet Container. It is
deployed in $JETTY_HOME/webapp.demo and configured by $JETTY_HOME/start.d/900-demo.ini
This is the Test webapp for the Jetty 9 HTTP Server and Servlet Container.
It is configured as a jetty base directory in $JETTY_HOME/demo_base.
</p>
<h2>Jetty Tests:</h2>
<table border=0>
<tr valign=top><td>
<ul>
<li>Servet: <a href="hello/">Hello World</a></li>
<li>Dump: <a href="dump/info">Request</a>, <a href="session/">Session</a>, <a href="cookie/">Cookie</a></li>
<li>Dump Servlets: <ul>
<li><a href="dump/info">Request</a></li>
<li><a href="session/">Session</a></li>
<li><a href="cookie/">Cookie</a></li>
</ul></li>
<li>Comet Chat Examples:
<ul>
<li><a href="chat/">Long Polling</a></li>
<li><a href="ws">WebSocket (Jetty API)</a></li>
<li><a href="javax.websocket">WebSocket (javax.websocket)</a></li>
</ul>
</li>
<li>JSP: <a href="jsp/">examples</a></li>
<li>Comet Chat: <a href="chat/">Long Polling</a>, <a href="ws">WebSocket (Jetty API)</a>, <a href="javax.websocket">WebSocket (javax.websocket)</a></li>
</ul></td><td><ul>
<li><a href="auth.html">Authentication</a></li>
<li><a href="dispatch">Dispatcher Servlet</a></li>
<li><a href="rewrite/">Request Rewrite Servlet</a></li>
<li>static content:
<a href="d.txt">tiny</a>,
<a href="da.txt">small</a>,
<a href="dat.txt">medium</a>,
<a href="data.txt">large</a>,
<a href="data.txt.gz">large gziped</a></li>
<li>Static content: <ul>
<li><a href="d.txt">tiny</a></li>
<li><a href="da.txt">small</a></li>
<li><a href="dat.txt">medium</a></li>
<li><a href="data.txt">large</a></li>
<li><a href="data.txt.gz">large gziped</a></li>
</ul></li>
</ul>
</td></tr></table>
<p>
Useful links are:<ul>
<h2>Useful links:</h2>
<ul>
<li><a
href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/tests/test-webapps/test-jetty-webapp">Source
tree of this webapp</a></li>
@ -42,8 +66,7 @@ tree of this webapp</a></li>
</ul>
</p>
<p>
<a href="/">MAIN MENU</a>
</p>
<hr/>
<center> <a href="http://www.eclipse.org/jetty"><img style="border:0" src="small_powered_by.gif"/></a></center>
</BODY>
</HTML>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -6,34 +6,30 @@
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</HEAD>
<BODY>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<p>&nbsp;</p>
<a href="http://localhost:8080/">Home</a>
<center>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<br/>
<b><a href="http://localhost:8080/">Demo Home</a></b>
<hr/>
<span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span>
</center>
<center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center>
<P>
<h1>JNDI Test WebApp</h1>
<p>
This example shows how to configure and lookup resources such as DataSources, a JTA transaction manager and a java.mail.Session in JNDI.
</p>
<h2>Preparation</h2>
<p>
To enable JNDI edit the start.ini or start.d/*.ini files to include "OPTIONS=jndi".
</p>
<p>
For the jetty distribution demos, jndi is already enabled in the modules/demo.mod file and also enables various configurations in
the demo directory which includes some mock resources used by the test.
</p>
<h2>Preparation</h2>
<p>To enable JNDI in a base jetty instance do:
<pre>
$ cd $JETTY_BASE
$ java -jar $JETTY_HOME/start.jar --module-startd-ini=jndi
</pre>
</p>
<p>This will create a $JETTY_BASE/start.d/jndi.ini file to enable and parameterise JNDI. If the --module-start-ini option instead, then the same initialisation will be appended to the
$JETTY_BASE/start.ini file instead. The jetty demo-base already has JNDI enabled in the start.ini file and some mock resources included. </p>
<p>The full source of this demonstration is available <a href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/tests/test-webapps/test-jndi-webapp">here</a>.</p>
<h2>Execution</h2>
<p>
Click <code>Test</code> to check the runtime lookup of the JNDI resources.
@ -43,10 +39,8 @@ Click <code>Test</code> to check the runtime lookup of the JNDI resources.
</form>
<center>
<hr/>
<a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a>
</center>
<center> <a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a> </center>
</BODY>
</HTML>

View File

@ -6,15 +6,12 @@
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</HEAD>
<BODY >
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<p>&nbsp;</p>
<a href="http://localhost:8080/">Home</a>
<center>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
<br/>
<b><a href="http://localhost:8080/">Demo Home</a></b>
<hr/>
<span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span>
</center>
<P>
<center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center>
<h1>Servlet 3.1 Test WebApp</h1>
<p>