However, with version 2.3,
the elements must appear in the DTD-defined order.
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
Servers compliant with servlet specification version 2.4 are required to correctly
deploy Web applications compliant with version 2.3. However, if you declare
web.xml with version 2.3, even if the server used for deployment complies with servlet
specification 2.4, the 2.4-specific features will not be enabled for your Web application.
For example, the JSP Expression Language Code (introduced in version 2.4)
will be treated as regular text in your JSP pages.
2.3 The Elements of web.xml
In this section we look at the main elements of web.xml that appear directly under
web-app and briefly discuss their purpose. For detailed treatment of each of these
subelements, see later sections in this chapter.
Because there are just a few differences between web.xml version 2.4 and 2.3, we
first discuss the elements of web.xml declared with the latest servlet specification,
version 2.4, and then briefly cover version 2.3.
Even though version 2.4 is the current version of the servlet specification, version
2.3 is still important. A project may have a requirement to run on multiple servers,
some of which are older or only comply with version 2.
Pages:
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73