Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if there are no more filters?

Given a Filter class definition with this method:

Which should you insert at line 25 to properly invoke the next filter in the chain, or the target
servlet if there are no more filters?

Given a Filter class definition with this method:

Which should you insert at line 25 to properly invoke the next filter in the chain, or the target
servlet if there are no more filters?

A.
chain.forward(request, response);

B.
chain.doFilter(request, response);

C.
request.forward(request, response);

D.
request.doFilter(request, response);

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *