This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes tags vs tag libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "tags vs tag libraries" Watch "tags vs tag libraries" New topic

tags vs tag libraries

Aaron Roberts
Ranch Hand

Joined: Sep 10, 2002
Posts: 174
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?
Aaron R>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60740

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Aaron Roberts
Ranch Hand

Joined: Sep 10, 2002
Posts: 174
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.
Aaron R>
I agree. Here's the link:
subject: tags vs tag libraries
Similar Threads
How do I add custom tag libraries in a JSP page?
Newbie question on JSP/Tomcat/MySql
attribute tag v/s attribute directive
jsp:forward problem
taglib vs. JSP 2.0 tagfile