Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why are tag files used

 
James Winfrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

Why do we use tag files instead of jsp:include and c:import?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There could be many reasons, but for me it boils down to one word: parameterization.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're kind of different things, too: tags are generally intended to encapsulate behavior, can do things to their bodies, etc. Includes are primarily focused on presentation only, don't "do" anything, and so on.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic