This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page-475 taglib usage wrongly given-not mentioned in errata

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-app>
...
<jsp-config>
<taglib>
<taglib-uri>....</taglib-uri>
<taglib-location>....</taglib-location>
</taglib>
</jsp-config>
....
</web-app>

I guess this is wrong it should be

<web-app>
...
<taglib>
<taglib-uri>....</taglib-uri>
<taglib-location>....</taglib-location>
</taglib>
....
</web-app>

Can anyone clarify?
 
Rohitt Vermaa
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-apps> has no <taglib> child element. This element should be present in <jsp-config>. Refer the servlets specs.
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's given correctly...
Here's something from Servlet Spec. 2.4 - page 143
The jsp-config is used to provide global configuration information for the JSP files in a web application. It has two sub-elements, taglib and jsp-propertygroup.
The taglib element can be used to provide information on a tag library
that is used by a JSP page within the Web application.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but in hfsj its mentioning about the previous version of servlet and in that case for example servlet 2.3 its directly under web-app
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic