This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

web.xml couldn't detect taglib tag anymore?

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, good day , i using tomcat 5.0.28 , when i try to convery my existing web.xml which define in 2.3 standard with <!DOCTYPE ..> header

with


it give me some kind of error with message "element taglib not allow here "

where the taglib should be ? or do i miss some other part ...thank you
[ April 15, 2006: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 2.4 schema is pickier about order than the 2.3 DOCTYPE.

Why do you have taglib declarations in your web.xml in the first place? They're rarely required.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, Bear Bibeault , is that any reference to show how to construct web.xml file ? thank you

by the way, what wrong in display - name ?


and also, if we didn't put



it can detect tld automatically ? thank you again

[ April 15, 2006: Message edited by: Nakata kokuyo ]
[ April 15, 2006: Message edited by: Nakata kokuyo ]
 
Bear Bibeault
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Servlet Specification is the best source for such information.

And yes, the container will automatically find TLD files that pput into the correct locations. There is rearely a need to declare TLDs in the web.xml.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bear, i meant on the reference to create web.xml file , where we can reference it ?

i have download the servlet spec , it actually servlet API
 
Bear Bibeault
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chapter 13 of the Servlet Specification has everything you need to know.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bear, forgive my stupidness ...

i just go to the link here and get download, it just give me API

Servlets 2.4 Specification: http://www.jcp.org/aboutJava/communityprocess/final/jsr154/


and where is the explanation as you mentioned on chapter 13 ....
mind to provide me the reference link that you mentioning ?

sorry for make trouble
 
Bear Bibeault
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you downloading the PDF or the zip file? I just downloaded it and the PDF is the specification.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry , bear , i thought the html and pdf are same ...i have it now ...thanks for guidance
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
The 2.4 schema is pickier about order than the 2.3 DOCTYPE.


Really? I was led to believe that it was LESS picky - ie order was not important any more. You can mix your "servlet" and "servlet-mapping" to your hearts content.

The change that happened between 2.3 and 2.4, is that taglib entries need to be nested in a <jsp-config> section, rather than at the root level where they were before.

However as Bear has said, you shouldn't need that taglib entry in web.xml any more. The struts taglibs define "standard urls" that you can use to import them now:
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic