[導入]利用Servlet過濾器來實現對頁面的權限控制
在J2EE項目中,使用Servlet過濾器來實現對頁面的權限控制問題,比較的方便和實用。這里就不多講過濾器的原理了(可見:http://www.28600.com/article1/5-57589.htm)。 下面是我在項目實際開發中,對權限控制的代碼的節選:
public void doFilter(ServletRequest srequest, ServletResponse sresponse,
FilterChain filterChain) throws IOException, ServletExceptio
FilterChain filterChain) throws IOException, ServletExceptio
類別:Java 查看評論
文章來源:http://hi.baidu.com/whxleem/blog/item/10f6321f6e1a41c8a68669ed.html