相关资料:
1. Struts Tiles
Struts Tiles Guide 最基本的资料
2. Tiles Advanced Features by Cedric Dumoulin.
这篇文章列在Struts Tiles Guide的reference中,我感觉是写的比较全面而又有一定深度的文章,尤其是其中的第七部分较详细的写了如何使用Tiles进行动态portal的构建,根据这篇文章再配合Struts里面附带的Tiles-document就可以较完整地了解Tiles的全貌了.
3. 基于Tiles框架Struts框架的UI 设计—几种组织HTML和JSP视图组件
这篇是Struts Tiles Guide的reference中的一篇文章的中文版,写的也很不错,很有条理看起来.
4. Struts 和 Tiles 辅助基于组件的开发
这也是Struts Tiles Guide的reference中的一篇文章的中文版,一般吧,中文的看起来快一点而已.
Section 7 DYNAMIC PORTAL EXAMPLE
What's a Tile?
A Tile is an area in a web page. This area is rectangular, and can also be called "region" (like in another template mechanism by David Geary).Assembling several Tiles can make themselves a new Tile. Tiles in a web page can be build recursively and represented as a tree where nodes represent regions. Root node is usually the page, final nodes or leafs contain page content, and intermediate nodes are usually layouts.
There are several ways to associate an Action and a View as a Tile:• Specify the Action classname or action URL in <insert> or in <definition> (TilesV1.1)• Use a Struts Action in struts-config.xml, let it forward to a definition name. In tilesconfig.xml specify one definition with the action URL as page, and one definition withthe view as the page. The first definition is used as the complete Tile definition (action +view), the second definition is used as the view definition.• It is possible to associate more than one view to a controller. Exactly one will be chosen.This is useful when you have a main view and an error view. Same as before, but with more than one forward and view definition.