简体   繁体   中英

Tomcat web.xml documentation?

I wonder if anyone can help?

I am having some issues with deploying a java app to tomcat and i wanted to see where the documentation for web.xml is.

I can't seem to find it.

I am using a standard web.xml but i would like to know what all the specific xml tags mean.

Of course normally using a standard web.xml just works but i would really like to see some documentation.

I have looked on the tomcat 7 documentation site but i can't seem to find it

Anyone had any luck

Thanks

The file web.xml is also know as the deployment descriptor and is not tomcat-specific. If you want to find some documentation about the deployment descriptor look in the Java Servlet Specification , chapter 13 and also apendixes A and B. (this is for version 2.4, maybe you rather search for the most recent version, 3.1 I think)

Now if you are looking for documentation about the file web.xml in CATALINA_HOME /conf , the file itself is already well self-documented with internal comments, BTW, the first comment says:

  <!-- This document defines default values for *all* web applications      -->
  <!-- loaded into this instance of Tomcat.  As each application is         -->
  <!-- deployed, this file is processed, followed by the                    -->
  <!-- "/WEB-INF/web.xml" deployment descriptor from your own               -->
  <!-- applications.                                                        -->
  <!--                                                                      -->
  <!-- WARNING:  Do not configure application-specific resources here!      -->
  <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->

也许您会发现本参考指南很有用

If you mean web.xml in conf/web.xml , this is deployment descriptor for default application.

See here http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html

For general web.xml specification you have to check any JEE tutorial .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM