日期:2014-05-16  浏览次数:20555 次

防止SQL注入dbq
web.xml
<filter>
        <filter-name>StringFilter</filter-name>
        <filter-class>
             com.sqlSecurity.SqlSecurity
        </filter-class>        
    </filter>
    <filter-mapping>
        <filter-name>StringFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>