ilanyu 发布的文章

Java Web 伪静态

1、下载http://urlrewritefilter.googlecode.com/files/urlrewritefilter-4.0.3.jar,放置到WEB-INF/lib目录中。

2、将下面的内容增加到WEB-INF/web.xml

<filter>

<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>

</filter>
<filter-mapping>

<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>

</filter-mapping>


- 阅读剩余部分 -