Sunday, August 19, 2012

Servlet Filter

http://www.javaworld.com.tw/confluence/display/J2EE/JSP+Servlet+Filter-1
http://caterpillar.onlyfun.net/Gossip/ServletJSP/FilterImplSetting.html


Define in the web.xml, and execute it sequentially...

你可以透過<url-pattern> 或來指定,哪些URL請求或哪些Servlet可套用過濾器。如果同時具備,則先比對,再比對。如果有某個URL或Servlet會套用多個過濾器,則根據在web.xml中出現的先後順序,來決定過濾器的執行順序。


No comments:

Related Posts Plugin for WordPress, Blogger...