In this tutorial we are going to see Apache Tile 2.This tutorials created by referring apache web site,
Tiles is used to create reusable presentation component.Often, it looks nothing more than “JSP include” but when we used with tiles framework it becomes a consistent look and feel throughout the application.
Consider the following page.
<html>
<head><title>Java Tutorials Corner Tiles Tutorial</title><head>
<body>
<div id="header">
Welcome to Java Tutorials Corner
</div>
<div id="body">
Java Tutorials Corner body content.
</div>
<div id=footer">
© 2013, Java Tutorials Corner
</div>
</body>
</html>
In this html page cut up into three sections .
- header
- body
- footer
Ties reduce the code duplication and amount of configuration needed.This will accomplished by following steps
- Abstracting Tiles
- Reusing Tiles
- Implementing Template
- Removing Configuration
0 comments:
Post a Comment