Web. XML configuration manages the following website components:
1. Configure JSP <>
2. Configuring and managing the Servlet:<servlet>
3. Configuration and Management Listener
4. Configuring and Managing the Filter
5. Configuring and Managing Tag libraries
6. Configure JSP Properties
7. Configure the Web default home page
8. Configure and manage Jaas authorization authentication
9. Configuring and Managing resource references
2. Configuring the Servlet
<!--Configuring the name and implementation class of the servlet -<servlet> <!--Configure the name of the servlet - <Servlet-name>Firstservlet</Servlet-name> <!--specifying the implementation class for a servlet - <Servlet-class>Lee. Firstservlet</Servlet-class></servlet><!--Configure the URL of the servlet -<servlet-mapping> <!--Specifies the name of the servlet to use - <Servlet-name>Firstservlet</Servlet-name> <!--The map address where the servlet resides - <Url-param>/aa</Url-param></servlet-mapping>
View Code
4. Configuring and Managing the Filter
<Filter> <!--Filter's name - <Filter-name>Authority</Filter-name> <!--Filter Implementation Class - <Filter-class>Lee.authorityfilter</Filter-class></Filter><!--Filter-Blocked URLs -<filter-mapping> <!--use of the filter - <Filter-name>Authority</Filter-name> <!--Filter-Blocked URLs - <Url-pattern>/*</Url-pattern></filter-mapping>
View Code
Web. XML Configuration Content Introduction