更多"Given a Filter class"的相关试题:
[单项选择] 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 here 26.} 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?()
A. chain.forward(request, response);
B. chain.doFilter(request, response);
C. request.forward(request, response);
D. request.doFilter(request, response);
[单项选择]Within a resource-plan definition, what differentiates a top-level plan from a subplan?()
A. A subplan has the PLAN_SUB parameter value set to SUB
B. A top-level plan has the GROUP_OR_PLAN parameter set to the name of the subplan in the resource-plan definition
C. There is no difference in the resource-plan definition
D. A subplan always has the CPU_MTH parameter value set to RATIO
E. The string TOP_LEVEL is appended to the name of top-level resource plans