Thursday, July 7, 2011

SPRING - Tiles View with Spring

Tiles is just another view technology that helps in making the web page layout easier for the developers. Before the tiles were introduced, developers need to write code to include all the headers, footers, side panes on each and every web page they develop. Tiles View helps in removing such boiler plate code and to make the code maintenance easier.

While using the Tiles view, developer just need to define the layout of the web page in the form of a set of tiles say header, menu, left pane, content pane, right pane, status bar, etc. Once the layout is designed, the developer just need to develop the content area and configure them to get displayed in content pane in the tile.


Tiles View
To use Tiles in Spring, we need to add a couple of additional dependencies in our project. The following is the list of dependencies we need.
  • Struts version 1.1 or higher
  • Commons BeanUtils
  • Commons Digester
  • Commons Logging
These dependencies are all available in the Spring distribution.


Refer to Tiles View With Spring Example for a simple example on the usage of Tiles View with SPRING based application.

No comments:

Post a Comment