File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Tiles and Templates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Tiles and Templates" Watch "Struts Tiles and Templates" New topic

Struts Tiles and Templates

Abhay Kumar

Joined: Jun 03, 2003
Posts: 15
I want to know exactly is the difference between Struts Tiles and Templates.
Becoz, I can design ther same using templates.
Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
tiles are for struts 1.1 what templates are for struts 1.0.
templates are deprecated in favor of tiles.
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
In tiles you can separate the configuration of the screens in a tiles-defs file. If you do this you don't have to manually build your screens in the jsp. If you want to make changes you just have to change that one xml file.
You can for instance create a tiles-template and let all your screens extend that one. If you do this all other screens will use the same format.

This can be a mayor advantage opposite to struts templates.
Greetings Manuel
Abhay Kumar

Joined: Jun 03, 2003
Posts: 15
Thank you Manuel for the reply.Hope this process of sharing our thoughts continues
I agree. Here's the link:
subject: Struts Tiles and Templates
It's not a secret anymore!