yilmaz wrote:
>
> can anyone please tell me where i can find a piece of
> doc about the order of the tags in a web.xml file?
>
Technically, the DTD is the doc you want. You would
need to look at the ordering of the children in the
element type declarations (those !ELEMENT things).
That's kind of a pain, though. So I suspect most
people just look at an example and copy it.
> i need to set <security-constraints> tags
>
If you look at the DTD, in "ELEMENT web-app" (the very
first one), there is a list of elements off to the right
Those are the allowed child elements, and they're in the
order you need:
<!ELEMENT web-app (icon?, display-name?, description?,
distributable?, context-param*, filter*,
filter-mapping*, listener*, servlet*,
servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?,
error-page*, taglib*, resource-env-ref*,
resource-ref*, security-constraint*,
login-config?, security-role*, env-entry*,
ejb-ref*, ejb-local-ref*)>
Or, just take a look at the web.xml from the "examples"
webapp that comes with Tomcat, and copy what you need
from that.
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html