Changes for page Basic Tiles Integration
on 2012/03/18 23:48
on 2012/03/18 23:50
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,6 @@ 1 1 == About Apache Tiles == 2 2 3 -This is background for people new to templates. If you know you want to integrate tiles skip to the heading Adding Tiles to your Struts2 Project. 3 +This is background for people new to templates. If you know you want to integrate tiles skip to the heading **Adding Tiles to your Struts2 Project**. 4 4 5 5 If you are here you are aware of the problem: Web pages share a lot of commonality. Being Java programmers we are well versed in the problems of code duplication (because object oriented programming has excelent tools to combat this issue we are ever vigilent), simply it makes reuse and maintinence difficult. Two tools we use without hardly a thought in our Object Oriented arsenal is Composition and Inherietance. 6 6 ... ... @@ -119,26 +119,26 @@ 119 119 120 120 <div> 121 121 122 -* 123 -** This is the default body.** 124 -**</div> 122 + This is the default body. 125 125 124 +</div> 125 + 126 126 **Create file /WEB-INF/tiles/header.jsp** 127 127 128 128 <div> 129 129 130 -* 131 -** This is the default header.** 132 -**</div> 130 + This is the default header. 133 133 132 +</div> 133 + 134 134 **Create file /WEB-INF/tiles/footer.jsp** 135 135 136 136 <div> 137 137 138 -* 139 -** This is the default body.** 140 -**</div> 138 + This is the default body. 141 141 140 +</div> 141 + 142 142 === Test === 143 143 144 144 You should now be able to run the application supplying //test// as the action and you should see tiles in action.