Hi,
5th question in page 703 of HFSJ is as follows:
Which about the filters are true?
Here are the answers given:
A.Filters may be used to create request or response wrappers
G.Filter's doFilter() may block further request processing.
My doubts:
How option A is correct? Filters can use request or response wrappers to modify the request or response sent to/from
servlet. But how Filters are used to create wrappers?
Why Option " D.Filters support an initialization mechanism that includes an init() method that is guaranteed to be called before the filter is used to handle the requests "
is INCorrect?? Thanks & Regards,
Swathi.