Debian Codegraph @

jetty-ee10/jetty-ee10-demos/jetty-ee10-demo-jndi-webapp/src/main/webapp/index.html

raw
1 <html>
2 <head>
3 <title>JNDI Demo 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="demo.css"/>
7 </head>
8 <body>
9 <div class="topnav">
10 <a class="menu" href="http://localhost:8080/">Demo Home</a>
11 <a class="menu" href="https://github.com/jetty/jetty.project/tree/jetty-12.0.x/jetty-ee10/jetty-ee10-demos/jetty-ee10-demo-jndi-webapp/">Source</a>
12 <a class="menu" href="https://jetty.org/">Jetty Project Home</a>
13 <a class="menu" href="https://jetty.org/docs/">Documentation</a>
14 <a class="menu" href="https://webtide.com">Commercial Support</a>
15 </div>
16
17 <div class="content">
18 <center>
19 <span style="color:red; font-style:italic; font-weight:bold">Demo Web Application Only - Do NOT Deploy in Production</span>
20 </center>
21 <h1>Eclipse Jetty JNDI Demo Webapp</h1>
22 <p>
23 This is a demo webapp for the <a href="https://jetty.org/">Eclipse Jetty HTTP Server and Servlet Container</a>. It was added into your <code>$JETTY_BASE/webapps</code> directory.
24 </p>
25
26 <p>
27 It shows how to configure and lookup resources such as <code>javax.sql.DataSource</code>, a JTA transaction manager and a <code>java.mail.Session</code> in JNDI.
28 </p>
29
30 <h2>Preparation</h2>
31 <p>To use JNDI in a base jetty instance enable the <code>jndi</code> module:
32 <pre>
33 $ cd $JETTY_BASE
34 $ java -jar $JETTY_HOME/start.jar --add-module=jndi
35 </pre>
36 </p>
37 <p>
38 The jetty <code>demo</code> module pre-enables JNDI along with some mock resources used by this demo.
39 </p>
40
41 <h2>Execution</h2>
42 <p>
43 Click <code>Test</code> to check the runtime lookup of the JNDI resources.
44 </p>
45 <form action="test" method="post">
46 <button class="test" type="submit">Test</button>
47 </form>
48 </div>
49
50 <div class="footer">
51 <center><a href="https://jetty.org"><img style="border:0" src="small_powered_by.gif"/></a></center>
52 </div>
53
54
55 </body>
56 </html>