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.
第1题:
Given the web application deployment descriptor elements: 11.
第2题:
Which interface must a class implement to be informed of a session creation event?()
第3题:
Which is the true choice about the web container request processing model()?
第4题:
Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()
第5题:
Which three are true about servlet filters?()
第6题:
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
第7题:
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.
第8题:
<filters>
<servlet>
<filter-list>
第9题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
第10题:
A
The echo tag handler must define the setAttribute (String key, String value) method
The
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
第11题:
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
第12题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
javax.servlet.http.HttpSessionActivationListener
第13题:
Which the three are true about servlet filters?()
第14题:
关于Servlet Filter,下列说法正确的有()
第15题:
Which element is the parent of the
第16题:
Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()
第17题:
Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()
第18题:
Which is true about the web container request processing model?()
第19题:
Your filter class must implement an init method and a destroy method.
Your filter class must also implement javax.servlet.FilterChain.
When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
第20题:
The init method on a filter is called the first time a servlet mapped to that filter is invoked.
A filter defined for a servlet must always forward control to the next resource in the filter chain.
Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.
If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.
第21题:
<include/>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>include</dispatcher>
<filter-condition>INCLUDE</filter-condition>
<filter-condition>include</filter-condition>
第22题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionCreationListener
javax.servlet.http.HttpSessionActivationListener
第23题:
〈filter〉
〈filter-mapping〉
〈servlet〉
〈servlet-mapping〉
第24题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener