We are moved to new domain
Click -> www.ehowtonow.com
Sunday, 11 August 2013

Tiles - Introduction


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">
&#169; 2013, Java Tutorials Corner
</div>
</body>
</html>

In this html page cut up into three sections .
  1. header

  2. body

  3. footer
but this is single page layout.Tiles help us to create more page with same look and feel , first we defines basic layout with different sections and we can use this basic layout as template for more pages.

Ties reduce the code duplication and amount of configuration needed.This will accomplished by following steps
  1. Abstracting Tiles

  2. Reusing Tiles

  3. Implementing Template

  4. Removing Configuration



Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Tiles - Introduction Rating: 5 Reviewed By: eHowToNow