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
第1题:
Given the web application deployment descriptor elements: 11.
第2题:
在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。
第3题:
在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。
第4题:
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?()
第5题:
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?()
第6题:
Which is true about the web container request processing model?()
第7题:
<filters>
<servlet>
<filter-list>
第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题:
chain.forward(request, response);
chain.doFilter(request, response);
request.forward(request, response);
request.doFilter(request, response);
第13题:
Which the three are true about servlet filters?()
第14题:
Which is the true choice about the web container request processing model()?
第15题:
Which element is the parent of the
第16题:
Which three are true about servlet filters?()
第17题:
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
第18题:
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.
第19题:
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
第20题:
是在uap项目的weB.xml中定义servlet、filter
在模块中定义servlet、filter时,首先是模块的启动顺序决定了模块中所有servlet、filter的顺序
如果同一个模块中servlet、filter定义在不同的文件中,文件被加载解析的顺序也会影响模块servlet、filter的顺序
模块中同一个配置文件中定义的servlet、filter按被定义的前后顺序处理
第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题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第24题:
<filter>
<filter-mapping>
<filter-name>
<filter-class>