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



Leave a Reply 4

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


giuseppe

giuseppe

I would have answered B, because the redirect use is not specified in the question

bob

bob

the question explicitly states the use of sendRedirect()