• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP 2.0 deal with custom tag libraries  RSS feed

 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There�s two features when JSP 2.0 deal with custom tag libraries:
SimpleTag interface and tag extensions (tag files).
In the most current JEE application, which one is more popular and why?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both.

Java-based tags extending SimpleTag are most appropriate for tags that perform calculations or other non-view actions that are best expressed in Java.

Tag files are most approriate for view-centric actions that are best expressed in JSP.

I use both in my applications, choosing whichever is the tool best-suited to implement a custom action.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!