File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Custom tag development still relevant ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Custom tag development still relevant ?" Watch "Custom tag development still relevant ?" New topic

Custom tag development still relevant ?

Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 182

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...

My name was Borat Sagdiyev. But the forum does not allow such names.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

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.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Custom tag development still relevant ?
jQuery in Action, 3rd edition