f86ca57f5321fc766b9994c31fbdc251e45343c3
[percentcodec] / examples / spring / src / main / webapp / WEB-INF / views / index.jsp
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <html>
4   <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6     <title>Simple Spring-MVC Examples</title>
7   </head>
8   <body>
9     <h1>Simple Spring-MVC Examples</h1>
10     <ul>
11       <li><a href="/spring-page.html">Simple Spring-View</a></li>
12       <li><a href="/spring-controller.html">Simple Spring-Controller</a></li>
13     </ul>
14     <p>This page was delivered via SPRING!</p>
15     <h2>Note:</h2>
16     <p>
17       Since the <code>org.springframework.web.servlet.DispatcherServlet</code>
18       ist configured to handle all <code>*.html</code>-requests, the path
19       <code>/index.html</code> points to a view.
20     </p>
21     <p>
22       Therefore, this page must be stored under
23       <code>/WEB-INF/views/index.jsp</code> in order to be served as
24       <code>/index.html</code>
25     </p>
26     <p>
27       Additionatly, a file <code>/index.jsp</code> in the root-directory of
28       the webappliction is needed, to forward unqualified requests
29       (like <code>http://HOSTNAME/</code>) to the welcome-page served by
30       the Spring-Dispatcher-Servlet.
31     </p>
32   </body>
33 </html>