Which two statements are true?

You want to create a filter for your web application and your filter will implement
.servlet.Filter.
Which two statements are true? (Choose two)

You want to create a filter for your web application and your filter will implement
.servlet.Filter.
Which two statements are true? (Choose two)

A.
Your filter class must implement an init method and a destroy method.

B.
Your filter class must also implement javax.sarvlat.FilterChain.

C.
When your filter chains to the next filter, it should pass the same arguments it received in its
doFilter method.

D.
The method that your filter invokes on the object it received that implements
javax – servlet.Filterchain can invoke either another filter or a servlet.

E.
Your filter class must implement a doFilter method that takes, among other things, an
HttpServletRequest object and an HttpServletresponse object.



Leave a Reply 7

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


juanito

juanito

are you sure?

Allan Santos

Allan Santos

For me it is A, D.

Option E is almost right.
doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)

Zaid

Zaid

No, doFilter takes ServletRequest and ServletResponse. Not HttpServletRequest and HttpServletResponse.

Marikannan

Marikannan

Right, doFilter have only ServletRequest and ServletResponse so A,D is correct.

isa

isa

Buenas tardes….
Crees que es necesario estudiar el 1Z0-858? o con solo el 1Z0-899 es suficiente… quedo atenta… Muchas gracias!

isa

isa

Buenas tardes….
Para presentar la certificación en 1Z0-899 crees que es necesario estudiar el 1Z0-858? o con solo el 1Z0-899 de esta pagina es suficiente… quedo atenta…
Muchas gracias!….