CS6320:  SW Engineering of Web Based Systems

 

web.xml web application deployment descriptor file examples

 

 

Example 1:

web.xml

 

Example 2:

web.xml


Here we have both a jsp called index.jsp and a servlet called JDBCServlet. In addition to this, a filter class is used and applied to ONLY the index.jsp (if you wanted to apply it ot the JDBCServelt you would need an additional

<filter-mapping>
<filter-name>MyAuthFilter</filter-name>
<url-pattern>/JDBCServlet</url-pattern>
</filter-mapping>

 

 

 

 


© Lynne Grewe