• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Regarding Tags  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can one one please explain me what is:
TagFiles
TagLibrary
TagHandlers
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TagFiles are nothing but special JSPs with .tag extension. It's more often like a special JSP to include contents used mainly by page designers. No Java files need to be generated for implementing such Tag functionality.

TagHandlers are nothing but Java code invoked while executing Tags in JSPs

TagLibraries are APIs that enable a tag developer to implement particular tag functionality. There are two different Tags: Simple and Classic. JSP 2.0 introduced Simple Tag and its widely used and recommended. To implement Simple Tag, you must extend SimpleTagSupport class. These are all TagLibraries.
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

TagLibraries are APIs

I'd argue that a tag library is a collection of tags, defined by a single Tag Library Descriptor (TLD), and usually associated with one or more URIs which identify the library to JSP pages/documents. The Tag Extension API provides the interfaces and classes required to implement Tags (by creating Tag Handler classes), which must then be deployed into a Tag Library. Tag Files are written in JSP syntax (along with the special <%@ tag %> directive) and may either be deployed into Tag Libraries or stand-alone in an application.

To implement Simple Tag, you must extend SimpleTagSupport class.

You must implement the SimpleTag interface. You may extend the SimpleTagSupport class (which implements SimpleTag) if that's more convenient - but it's not a requirement.
 
Gorkal Raghavendra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
Now i got it.
 
Don't listen to Steve. Just read this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!