index.jsp
来自「Java/J2EE application framework based on」· JSP 代码 · 共 25 行
JSP
25 行
<h2>Welcome to SomeCompany Inc.</h2>
<p>
This is a simple example of the usage of Tiles in combination with Spring.
Have a look at the <code>tiles-servlet.xml</code> and the reference manual
for more ifnromation on how to configure Tiles and use things like the
<code>ComponentControllerSupport</code>.
</p>
<p>
This tiny site has a template (main.jsp, consisting of the top of the page
including the menu) and three content JSPs (index.jsp, about.jsp and contact.jsp).
By adding the UrlFileNameViewController from all URLs, the file name is used as
the view name. The <code>InternalResourceViewResolver</code> uses the
<code>TilesJstlView</code>. Last but not least, a <code>TilesConfigurer</code>
is used to configure the tiles from the <code>definitions.xml</code> file.
</p>
<p>
Besides the templates described above, there's another template called <code>news</code>
that automatically imports news from Slashdot, TheServerside or JavaBlogs (currently the items
are NOT cached, so it can take a while before the feeds load). Those
templates use the Tiles Controller notion as can be seen in the <code>definitions.xml</code> file
By extending <code>ComponentControllerSupport</code>, you can access the application context.
</p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?