What in the DTD below requires this? Simply the order of the Elements?

Scott Evans


> -----Original Message-----
> From: Allan Scott [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
>
>
> Hi Heiko,
>
> The ordering is required because the DTD for the web
> specifier requires it:
>
> <!--
> The web-app element is the root of the deployment descriptor for a web
> application
> -->
> <!ELEMENT web-app (icon?, display-name?, description?, distributable?,
> context-param*, servlet*, servlet-mapping*, session-config?,
> mime-mapping*, welcome-file-list?, error-page*, resource-ref*,
> security-constraint*, login-config?, security-role*, env-entry*,
> ejb-ref*)>
>
> So this is not a bug - just the specified behavior.
>
> ---Allan
>
> ----- Original Message -----
> From: "Heiko Gottschling" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 02, 2000 7:47 AM
> Subject: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
>
>
> > Hi,
> >
> > you may (or may not) have noticed my posting some days ago
> regarding a
> > problem with Tomcat3.1 and a custom tag library. Since no one solved
> > this problem, I had to solve it myself. Here's what I found out:
> >
> > When using a custom tag lib, Tomcat obviously insists on a
> certain order
> > of tags in the web.xml file. Tags must appear in this order:
> >
> > <servlet>
> > <servlet-mapping>
> > <taglib>
> >
> > Any deviation of this order yields an error when calling
> the JSP page.
> >
> > The error can easily be reproduced with the web.xml file of
> the example
> > webapp provided with tomcat. Re-arranging the order of tags
> within that
> > file breaks the "simpletag" example. (The JSP file must be
> compiled anew
> > after making the change to view the effect).
> >
> > Error message:
> >
> > >Unable to open taglibrary
http://java.apache.org/tomcat/examples-taglib :
> >Parse Error in the tag library descriptor: Element "web-app" does not
allow
> >"servlet-mapping" here.
>
> I have only checked for this error in conjuction with tag libs, so I
> don't know if it occurs otherwise, too.
>
> Is this a real bug, or is the order of tags in web.xml specified
> anywhere (can't imagine that's the case, though)?
>
> cu
> Heiko
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to