WIP: examples - spring
[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     </ul>
13     <p>This page was delivered via SPRING!</p>
14     <h2>Note:</h2>
15     <p>
16       Since the <code>org.springframework.web.servlet.DispatcherServlet</code>
17       ist configured to handle all <code>*.html</code>-requests, the path
18       <code>/index.html</code> points to a view.
19     </p>
20     <p>
21       Therefore, this page must be stored under
22       <code>/WEB-INF/views/index.jsp</code> in order to be served as
23       <code>/index.html</code>
24     </p>
25     <p>
26       Additionatly, a file <code>/index.jsp</code> in the root-directory of
27       the webappliction is needed, to forward unqualified requests
28       (like <code>http://HOSTNAME/</code>) to the welcome-page served by
29       the Spring-Dispatcher-Servlet.
30     </p>
31   </body>
32 </html>