Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Tiles and Templates

 
Abhay Kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tiles are for struts 1.1 what templates are for struts 1.0.
templates are deprecated in favor of tiles.
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Manuel for the reply.Hope this process of sharing our thoughts continues
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic