Hi all,
In the HF's chapter - 13
coffee cram exam
Q.no.-5 Which about filter's are true??
in the book option 'E' is given incorrect
"A filter's doFilter() method must call doFilter() on the input FilterChain object in order to ensure that all filters have a chance to execute"
The explanation given in the book is,
"Calling doFilter() is not necessary if a filter wishes to block furthur request processing "
in my openion Both 'E' and the explanation are correct coz....
"It is not necessary to call FilterChain's doFilter(), but to ensure that all filters have a chance to execute it must be called"
and that's what is given in the explanation, explanation is not proving 'E' is incorrect. If 'E' is incorrect then there must be some other way to do the same thing..
tell me if i am wrong
Thanking in advance.....