Which is the true choice about the web container request processing model()?
第1题:
Given the web application deployment descriptor elements: 11.
第2题:
关于Servlet Filter,下列说法正确的有()
第3题:
在J2EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括
第4题:
Which element is the parent of the
第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题:
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
第9题:
<include/>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>include</dispatcher>
<filter-condition>INCLUDE</filter-condition>
<filter-condition>include</filter-condition>
第10题:
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
第11题:
〈filter〉
〈filter-mapping〉
〈filter-name〉
〈filter-class〉
第12题:
<filter>
<filter-mapping>
<filter-name>
<filter-class>
第13题:
Which the three are true about servlet filters?()
第14题:
在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。
第15题:
在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。
第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题:
Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()
第18题:
Which is true about the web container request processing model?()
第19题:
<filters>
<servlet>
<filter-list>
第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题:
The servlet’s init method returns a non-zero status.
The servlet’s init method throws a Servlet Exception
The servlet’s init method sets the Servlet Response’s context length to 0
The servlet’s init method sets the Servlet Response’s content type to null.
The servlet’s init method does NOT return within a time period defined by the servlet container.
第22题:
〈filter〉
〈filter-mapping〉
〈servlet〉
〈servlet-mapping〉
第23题:
chain.forward(request, response);
chain.doFilter(request, response);
request.forward(request, response);
request.doFilter(request, response);