In the Web.xml file contained in the WAR file, the
<context-param> tag is misplaced at the bottom of the file instead
of listed in sequence with the other <context-param> tag entries.
Any tag with multiple entries, including the <context-param> tag,
must appear in sequence at one location. WebSphere Application Server
functions use information in this file during the configuration and
deployment phases of Web application development.
About Servlet Filter
Servlet filters are powerful tools that are available to Web
application developers using Servlet specification 2.3 or higher. Servlet
filters are designed to manipulate a request, response, or both, sent to a
Web application. This functionality is provided in a manner that does not
affect servlets and JavaServer Pages™ (JSP™s) used by the Web application
(unless that is the desired effect). Think of servlet filters as a chain
of steps that a request and response must go through before reaching a
servlet, JSP, or static resource (such as an HTML page) in a Web
application.
Figure 1 in this linked article contains an illustration of this
concept: Two Servlet Filters Every Web Application Should
Have
|