• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

taglib element in web.xml

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That makes sense, thank you Christophe.
 
reply
    Bookmark Topic Watch Topic
  • New Topic