You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Michael <JM...@chesterfield.mo.us> on 2002/06/10 21:07:39 UTC
Tomcat 4 web.xml vs. Tomcat 3
I'm seeing some odd behavior since converting from Tomcat 3.x to 4.0...
it seems that 4.0 is extremely picky about the *order* things are in
within WEB.XML.
For example, with Tomcat 3.x I could do
<servlet>
...
</servlet>
<servlet-mapping>
...
</servlet-mapping>
<servlet>
... another servlet
</servlet>
<servlet-mapping>
...another servlet mapping
</servlet-mapping>
etc, etc.
The order of servet/servlet-mapping tags was irrlevevent as long as
everything was correct.
Now with Tomcat 4, it refuses to load a servlet unless *all* <servlet>
tags come first, then all associated <servlet-mapping> tags come
after...
Is this design intentional, or is it a bug? Its not a huge deal, but
I'm used to having my web.xml files formatted for better readability and
TC4 doesn't like it. Why should it care if I want to put each
<servlet-mapping> tag right after its associated <servlet> tag?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>