❶ 急!如何讓過濾器不過濾頁面中引用的CSS或JS頁面
對於這種,我說兩種方法:
1、將你所有的JSP頁面單獨放在一個文件夾里專(假如jspPage),jspPage文件夾里可根據屬類別分若乾子文件夾,再把相對應的JSP放在子文件夾里;
JS、CSS及圖片等分別放在外面的文件夾里(與文件夾jspPage並列)
再:<url-pattern>/jspPage/*</url-pattern>就行了
一般用的就是這種
2、在過濾的JAVA文件中,在doFilter方法里進行判斷,將後綴名為.css、.js等直接設置為通過就行了,這種較為復雜,在一些特殊情況下才用到,一般不推薦
❷ 魔獸世界界面社交語言過濾器不能點掉了 看文字有亂碼 我想看全的 聽說大腳插件可以 解除文字過濾 怎麼弄
/console SET profanityFilter "0" 直接回車輸入 或者在選項裡面也可以勾掉的 不用插件 你找找我忘了在那個選項卡里了 有個語言過濾的
❸ 什麼是過濾器如何設置過濾器
採用過來濾器,您可以根據多種條自件,設定自定義過濾器,以實現自己的特殊目的:
·登錄您的橄欖郵郵箱;
·選擇[郵箱設置]菜單;
·點擊郵件規則選項卡;
·在[規則名稱]欄位中輸入關鍵詞,然後根據自己的要求對其他各項進行配置。
·點擊[確定保存]保存設置。
這樣,您就可以在收郵件時,按照您的規則和設置,將郵件自動分類,並放到不同文件夾中。
❹ 魔獸世界如何關閉語言過濾器
主菜單 界面 社交 禁用垃圾信息過濾打鉤 確定 ..完
或者 /console SET profanityFilter "0"
❺ jsp過濾器的web.xml如何指定不想過濾的頁面
在filter類中判斷一下
如果URL是以page/index.jsp結尾的,直接就過了,不做驗證
不過感覺這種方法治標不治本
我也在等達人出現。。。
❻ filter過濾器配置如何不過濾一些頁面
直接添加多個文件映射啊,為每個需要進行過濾的文件都寫個映射標簽
❼ cas有些請求路徑不需要單點登錄過濾器攔截
業務系統web應用在使用單點登錄組件時,有些請求路徑不需要單點登錄過濾器攔截,比如公共開放的路徑,不需要認證都可以自由訪問的路徑,單點登錄過濾器配置的映射路徑一般以通配符匹配路徑,但要把這些路徑單獨提取出來,讓過濾器不攔截做單點登錄處理,就需要對原有過濾器進行擴展改造,才能實現這個功能。
擴展實現代碼如下:
public class CASFilter implements Filter {
public static enum ResponseType {
BREAK, GOON, RETURN
}
...
public void doFilter(
ServletRequest request,
ServletResponse response,
FilterChain fc){
。。。
CASReceipt receipt = (CASReceipt) session.getAttribute(CAS_FILTER_RECEIPT);
if (receipt != null && isReceiptAcceptable(receipt)) {
log.trace("CAS_FILTER_RECEIPT attribute was present and acceptable - passing request through filter..");
fc.doFilter(request, response);
return;
}else{
responeType = beforeDoSSOFilter(request, response);
if(ResponseType.RETURN==responeType){
return ;
}else if(ResponseType.BREAK==responeType) {
fc.doFilter(request, response);
return;
} //else go on
}
}
//過濾器的前置處理
public ResponseType beforeDoSSOFilter(ServletRequest request,
ServletResponse response) {
return ResponseType.GOON;
}
}
註:主要看原CASFilter 類紅字部分擴展代碼。
擴展實現類BMCASFilter
package com.sitechasia.sso.bmext;
public class BMCASFilter extends CASFilter {
private final Log log = LogFactory.getLog(this.getClass());
private static String ssoclient_passedPathSet;//設置不被sso過濾器攔截的請求路徑,需要符合url路徑通配符,多個路徑可以","分割
public static final String PASSEDPATHSET_INIT_PARAM="passedPathSet";//web.xml配置文件中的參數
@Override
public void init(FilterConfig config) throws ServletException {
super.init(config);
ssoclient_passedPathSet = SSOClientPropertiesSingleton.getInstance().getProperty(ClientConstants.SSOCLIENT_PASSEDPATHSET)==null?config.getInitParameter(PASSEDPATHSET_INIT_PARAM):SSOClientPropertiesSingleton.getInstance().getProperty(ClientConstants.SSOCLIENT_PASSEDPATHSET);
}
@Override
public ResponseType beforeDoSSOFilter(ServletRequest request,
ServletResponse response) {
if (ssoclient_passedPathSet != null) {//路徑過濾
HttpServletRequest httpRequest =(HttpServletRequest)request;
String requestPath = httpRequest.getRequestURI();
// String ls_requestPath = UrlUtils.buildFullRequestUrl(httpRequest.getScheme(), httpRequest.getServerName(), httpRequest.getServerPort(), requestPath, null);
PathMatcher matcher = new AntPathMatcher();
String passedPaths[]=null;
passedPaths =ssoclient_passedPathSet.split(",");
if(passedPaths!=null){
boolean flag;
for (String passedPath : passedPaths) {
flag = matcher.match(passedPath, requestPath);//ls_requestPath
if(flag){
log.info("sso client request path '"+requestPath+"'is matched,filter chain will be continued.");
return ResponseType.BREAK;
}
}
}
}
return ResponseType.GOON;
}
}
web.xml文件中配置修改如下:
<filter>
<description>單點登陸請求過濾器</description>
<filter-name>CASFilter</filter-name>
<filter-class>com.sitechasia.sso.dmext.filter.DMCASFilter</filter-class>
...
<init-param>
<description>排除路徑</description>
<param-name>passedPathSet</param-name>
<param-value>
/**/restful/userLogin/findPassword,
/**/restful/userLogin/findIllegalLoginCount,
/**/restful/tenantManager/**,
/**/restful/lock/**,
/**/restful/export/**
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CASFilter</filter-name>
<url-pattern>/index.jsp</url-pattern>
< /filter-mapping>
。。。
註:紅字部分為相應配置內容擴展部分
經過上述這樣擴展,配置的排除路徑作為請求時,單點登錄過濾攔截就會忽略處理,實現了目標功能要求。
❽ 設計用戶過濾器 對需要保護的頁面過濾 如果已經登錄則允許訪問 否則跳轉到login.jsp
比如你將要需抄要登錄後才能訪問的頁面放在main文件夾下,然後配置過濾器時,將過濾路徑設置為/main/*就可以了,login.jsp不能放在main文件夾中,防止login.jsp也被過濾,造成死循環。。。。
❾ 怎麼讓過濾器不對登錄頁面不起作用
1、在過濾器第一個業務邏輯處判斷用戶訪問的url是不是/form/renshi.jsp,如果是,直接通過驗證不走下面的業務邏輯。
2、修改過濾器配置,配置訪問/form/renshi.jsp不需要經過過濾器。
❿ CAD圖紙上過濾器用什麼代表
CAD圖紙上過濾器用紙張+漏斗的圖形代表。
1、首先打開繪制的CAD圖紙,輸版入快捷鍵「fi」+空格鍵