A filter must implement the destroy method
A filter must implement the doFilter method
A servlet may have multiple filters associated with it
A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface
A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
For each
第1题:
以下有关自定义servlet、filter错误的是()
第2题:
Given the web application deployment descriptor elements: 11.
第3题:
Giventhewebapplicationdeploymentdescriptorelements:11.<filter>12.<filter-name>ParamAdder</filter-name>13.<filter-class>com.example.ParamAdder</filter-class>14.</filter>...24.<filter-mapping>25.<filter-name>ParamAdder</filter-name>26.<servlet-name>MyServlet</servlet-name>27.<!--insertelementhere-->28.</filter-mapping>Whichelement,insertedatline27,causestheParamAdderfiltertobeappliedwhenMyServletisinvokedbyanotherservletusingtheRequestDispatcher.includemethod?()
A.<include/>
B.<dispatcher>INCLUDE</dispatcher>
C.<dispatcher>include</dispatcher>
D.<filter-condition>INCLUDE</filter-condition>
E.<filter-condition>include</filter-condition>
第4题:
Which is the true choice about the web container request processing model()?
第5题:
Which interface must a class implement to be informed of a session creation event?()
第6题:
在JAVA EE中,使用Servlet过滤器时,需要在web.xml通过()元素将过滤器映射到Web资源。
第7题:
Which the three are true about servlet filters?()
第8题:
A.Yourfilterclassmustimplementaninitmethodandadestroymethod.
B.Yourfilterclassmustalsoimplementjavax.servlet.FilterChain.
C.Whenyourfilterchainstothenextfilter,itshouldpassthesameargumentsitreceivedinitsdoFiltermethod.
D.Themethodthatyourfilterinvokesontheobjectitreceivedthatimplementsjavax.servlet.FilterChaincaninvokeeitheranotherfilteroraservlet.
E.YourfilterclassmustimplementadoFiltermethodthattakes,amongotherthings,anHTTPServletRequestobjectandanHTTPServletResponseobject.
第9题:
关于Servlet Filter,下列说法正确的有()
第10题:
Which element is the parent of the