Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tags vs tag libraries

 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had posed a question earlier this week about what makes a 'good' jsp page. I wanted to ask a specific question about the new tag files for JSPs. I think using the new JSP 2.0 tag files over compiled tag libraries is a great thing. It certainly appears to keep things separated when using an MVC setup. It seems to make it much easier for web page maintainers.
Do you think tag files should be used as often as possible to replace tag libraries?
What would a good balance be?
Where would you not want to use the new tag files?
Regards,
Aaron R>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tag files are great for when the primary output of the tags is JSP/HTML. If the tag needs to do a lot of processing, I prefer traditonal Java-based tags.
 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was hoping you would chime in Bear. The new tag files just seem like a great idea. Its too bad tags didn't start this way and then evolve into the more advanced tag library setup.
Regards,
Aaron R>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic