This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: Struts Tiles and Templates
Similar Threads
Tiles definition xml or JSP
Struts Templates vs. Tiles
HTML pages inheritence ?
tiles and templates