index.jsp
上传用户:jiancairen
上传日期:2007-08-27
资源大小:26458k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. <h2>Welcome to SomeCompany Inc.</h2>
  2. <p>
  3. This is a simple example of the usage of Tiles in combination with Spring.
  4. Have a look at the <code>tiles-servlet.xml</code> and the reference manual 
  5. for more ifnromation on how to configure Tiles and use things like the 
  6. <code>ComponentControllerSupport</code>.
  7. </p>
  8. <p>
  9. This tiny site has a template (main.jsp, consisting of the top of the page
  10. including the menu) and three content JSPs (index.jsp, about.jsp and contact.jsp).
  11. By adding the UrlFileNameViewController from all URLs, the file name is used as
  12. the view name. The <code>InternalResourceViewResolver</code> uses the 
  13. <code>TilesJstlView</code>. Last but not least, a <code>TilesConfigurer</code>
  14. is used to configure the tiles from the <code>definitions.xml</code> file.
  15. </p>
  16. <p>
  17. Besides the templates described above, there's another template called <code>news</code>
  18. that automatically imports news from Slashdot, TheServerside or JavaBlogs (currently the items
  19. are NOT cached, so it can take a while before the feeds load). Those
  20. templates use the Tiles Controller notion as can be seen in the <code>definitions.xml</code> file
  21. By extending <code>ComponentControllerSupport</code>, you can access the application context.
  22. </p>