Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

Which method must be used to encode a URL passed as an argument to
HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

Which method must be used to encode a URL passed as an argument to
HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

A.
ServletResponse.encodeURL

B.
HttpServletResponse.encodeURL

C.
ServletResponse.encodeRedirectURL

D.
HttpServletResponse.encodeRedirectURL

Explanation:



Leave a Reply 0

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