Upgrading to JSP 2.0 and Servlet 2.4 Specifications
See Also
The IDE supports the development of J2EE 1.4 applications, which mandate the
use of the most recent versions of the JSP and Servlet specifications:
- The JavaServer Pages Specification, Version 2.0 available at
http://java.sun.com/products/jsp
- The Java Servlet 2.4 Specification available at
http://java.sun.com
/products/servlet
You can load, execute, and debug web modules that are
compliant with the JavaServer Pages Specification, Version 1.2 and the Java
Servlet 2.3 Specification. However, if you plan to continue developing the web
modules from the IDE, you must upgrade the web module to the latest specifications.
To upgrade a web module to JSP 2.0 and Servlet 2.4 specifications:
- Change the version attribute to 2.4 in the deployment descriptor's (web.xml)
web-app entry.
- With version 2.4, filters are, by default, invoked for requests. If you
want filters invoked for forward requests, include requests, error page requests,
or a combination of these requests, you must add dispatcher entries to the
filter mapping in the deployment descriptor. For more information, see SRV.6.2.5
in the Java Servlet 2.4 Specification.
- (Optional) Change use of HttpServletResponse.SC_MOVED_TEMPORARILY
to HttpServletResponse.SC_FOUND. The 2.4 specifications replace SC_MOVED_TEMPORARILY
with SC_FOUND. Both variables are constants for the value 302. Although
you can continue to use SC_MOVED_TEMPORARILY, the 2.4 specifications
recommend that you use SC_FOUND.
- (Optional) Eliminate use of the SingleThreadModel class. This class
has been deprecated and may not be available in future versions.
Legal Notices