下列选项中,属于<filter-mapping>元素的子元素的是( )
A: <dispatcher>
B: <filter-class>
C: <filter-name>
D: <url-pattern>
A: <dispatcher>
B: <filter-class>
C: <filter-name>
D: <url-pattern>
举一反三
- 下列选项中,用于在配置Filter映射时设置Filter类完整名称的元素是() A: <;filter-class>; B: <;url-pattern>; C: <;filter>; D: <;filter-name>;
- 智慧职教: <filter> <filter-name>UrlSecurityFilter</filter-name> <filter-class>com.qzmall.filter.UrlSecurityFilter </filter-class> </filter> <filter-mapping> <filter-name>CoursewarePrivFilter</filter-name> <url-pattern>/courseware/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> 过滤器配置中,<dispatcher>有request和include两种方式的配置,如果此时courseware目录下的目标页面可以forward方式被调用,请问UrlSecurityFilter过滤器会不会被调用?
- 下列选项中,用于匹配拦截器所过滤的URL的元素是( ) A: <filter-name> B: <filter > C: <filter-mapping> D: <url-pattern>
- 3、下列选项中,用于匹配拦截器所过滤的URL的元素是()。 A: <;filter-mapping>; B: <;url-pattern>; C: <;filter>; D: <;filter-name>;
- 已知有如下的Filter配置信息:<filter><display-name>MyFilter</display-name><filter-name>MyFilter</filter-name><filter-class>cn.itcast.chapter04.filter.MyFilter</filter-class></filter><filter-mapping><filter-name>MyFilter</filter-name><url-pattern> /* </url-pattern></filter-mapping>则关于该配置的描述,正确的是( ) A: 该Filter的配置名称是 MyFilter B: 该Filter可以过滤所有用户的请求 C: URL请求http://localhost:8080/chapter04/login.action将会被拦截 D: 该Filter类的全名称是 cn.itcast.chapter04.filter.MyFilter