• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom tag development still relevant ?

 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading Kathy Sierra and Bert Bates book - Head first JSP & Servlets. I see a chapter on Custom Tag Development. I am learning JSP and
servlets only so that I can learn Spring. Is it really important to learn custom tag development ? Is it used frequently by JSP and Spring developers ?

This is a brief intro to the chapter -

Sometimes JSTL and standard actions aren’t enough. When you need something custom, and you don’t want to go back to scripting,
you can write your own tag handlers. That way, your page designers can use your tag in their pages, while all the hard work is done behind the scenes
in your tag handler class.

But there are three different ways to build your own tag handlers, so there’s a lot to learn. Of the three, two were introduced with JSP 2.0
to make your life easier (Simple Tags and Tag Files). But you still have to learn about Classic tags for that ridiculously rare occasion when
neither of the other two will do what you want. Custom tag development gives you virtually unlimited power, if you can learn to wield it...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say that learning the JSP2 mechanisms (especially tag files) is still very relevant to JSP. Even if for no reason than to understand how the Spring (an other framework tags) work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic