Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

web.xml couldn't detect taglib tag anymore?

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • 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 ]
 
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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"%>;
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic