• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib element in web.xml

 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have two question:
1)does the above element comes under <web-app> or <jsp-config>.
in Head First it mentioned to be in <jsp-config>, but in BEA site, it was mentioned in <web-app> tag.

2)what is the exact usage/importance of this tag in web.xml, do we really need it, if yes, when ?
we could able do the same with taglib directive in JSP itself.

Regards,
Ravi Kumar
[ May 26, 2008: Message edited by: Garla Ravi ]
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It comes under jsp-config, check the spec's.

In the old days you would specify where the tag files exist, but with the new spec's there is no need for that as the container looks at the 4 known locations. Yet you can still use this tag to specify where tag files are.
 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i can do the same task with taglib directive.

Could you please tell me exactly one instance where tag-lib is mandatory to use, which we can't do it by taglib directive.
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry I can't think of any, but as I recall the spec's talks about directive in details.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please tell me exactly one instance where tag-lib is mandatory to use, which we can't do it by taglib directive.

First of all, it is not a mandatory tag. I guess they left it for compatibility, for people upgrading for an old web.xml, to minimize the downgrade volume.
 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That makes sense, thank you Christophe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic