Java EE – Java EE – search the web XML general specification

I'm new to Java EE I found web XML is a standard file (deployment descriptor) used by many servlet container / application servers (such as tomcat, GlassFish, etc.) In many tutorials, I can find various XML tags, and I should put custom values somewhere to achieve a given function (in the context of the tutorial) But it's confusing - I don't know if I can reuse the tags in spring / Tomcat originally used in GlassFish / JSF (this is just an example) Is there one for web XML, so that I can independently know what tags I can place on the web server and the framework I use?

I've seen this, for example, Tomcat is web XML files provide some specific options, so I guess the behavior of each server will be different (just as web browsers can interpret HTML / CSS differently) – but is there a main document somewhere (independent of the framework)?

Solution

Generally, in the Java world, the general specification is called JSR For example, the servlet specification includes web Definition of XML (and how to interpret it) There are multiple servlet versions, which are specified by different JSR - S For example, the servlet 2.4 specification can be found here: http://jcp.org/en/jsr/detail?id=154 (it is called jsr-154)

I don't think the specification allows different vendors to use different web Xml-s. instead of the web.xml they recommend Other XML files Because Tomcat was once a reference implementation of servlets (but no longer), I think Tomcat is very strict with JSR

The latest servlet specification is now 3.0 (3.1 is coming soon)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>