Home » Oracle » 1z0-858 » 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
Correct Answer: D
Explanation/Reference:
encodeURL, and encodeRedirectURL can be used for URL re-encodeRedirectURL used to sendRedirect method
Download Printable PDF. VALID exam to help you PASS.
|
|