Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to develop your own Custom Tags?  RSS feed

 
Romario Dominic
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a need to develop One's own Custom Tags today when there are so many ready made Custom tags available thru JSTL and Struts?

Pls advise.
 
Bimal Patel
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

All it depends on your need. If you don't find anything which is already there, go ahead and develop your own. For example, you want to have a tag offering paging service. Which is not offered by JSTL or Struts. I think what they offer is kind of iterator tags. I don't know much abt struts as I am mostly invovled in developing middle tier for last 2 yrs. I can't recall from my past experience that Struts has something for this or not!

Anyways... One more example I can give is like you have some big code tables used for code-description kind of relation. You store code as a reference to the other tables in the DB. Its a huge headache for getting description for all the codes at the presentation layer or you need to have some logic before the presentation layer. So, here you can have a custom tag which gets the description of the code by passing a code!

There may be many other needs like this. And that why it is called custom tags .
 
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
Yes.

The JSTL contains some really useful tags, but they are general-purpose. And there are those of use that would rather lose an eye than use Struts.

Custom actions (the proper term for "custom tags") will always have a place in order to implement features that are particular to a web application.

Granted, I have found that the power of the JSTL and the EL have radically minimized the number of custom actions that I define in a web application. I can't tell you the number of custom actions I've "retired" because their purpose was subsumed by what the JSTL and EL are capable of.
[ March 24, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!