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>
|