• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib and container

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encountered this option(correct one) from one question of Javabeat:

A JSP 2.0 compliant container will automatically generate an implicit tag library for a set of tag files.


Could someone please elaborate this?

[Source]
Question 23, JavaBeat

Thanks,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the specification :
One of the goals of tag files as a technology is to make it as easy to write a tag handler as it is to write a JSP. Traditionally, writing tag handlers has been a tedious task, with a lot of time spent compiling and packaging the tag handlers and writing a TLD to provide information to tools and page authors about the custom actions. The rules for packaging tag files are designed to make it very simple and fast to write simple tags, while still providing as much power and flexibility as classic tag handlers have.

Tag files placed in the /WEB-INF/tags/ directory of the web application, or a subdirectory, are made easily accessible to JSPs without the need to explicitly write a Tag Library Descriptor. This makes it convenient for page authors to quickly abstract reusable JSP code by simply creating a new file and placing the code inside of it.

Note that this is not true for tag files packaged in a JAR file.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for the exam you will have to know the difference between tag files and tag libraries
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As always Thanks Christophe for your reply.

Thanks Michael for your tips!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic