欢迎来到Java学习网!
设为首页 | 加入收藏
当前位置: 首页 > Java语言 > JSP教程 >

 

WEB.XML 配置:

<? xml version = " 1.0 " encoding = " UTF-8 " ?>
< web-app version =" 2.4 " xmlns =" http://java.sun.com/xml/ns/j2ee " xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation =" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd " >
< filter >
< filter-name >jsp filter </ filter-name >
< filter-class > com.beanutil.JspFilter </ filter-class >
</ filter >
< filter-mapping >
< filter-name > jspfilter </ filter-name >
< url-pattern > *.jsp </ url-pattern >
</ filter-mapping >
< servlet >
< servlet-name >c onversion </ servlet-name >
< servlet-class > com.beanutil.ConversionServlet </ servlet-class >
</ servlet >
< servlet-mapping >
< servlet-name > conversion </ servlet-name >
< url-pattern > /conversion </ url-pattern >
</ servlet-mapping >
</ web-app >

相关教程
推荐内容