Which of the following best describes an example of URL rewriting? A.out.println("<INPUT TYPE='hidden' NAME='name' VALUE='BillyBob'>"); B.out.println("<FORM ACTION='servlet/TestServlet/ BillyBob' METHOD='POST'>"); C.HttpSession session = req.getSession(); D.session.addAttribute("name", "BillyBob"); E.None of the above
I personally think the correct choice would be letter E.
My anwser is based on the fact that URL rewriting is supposed to take place either when the user disables cookies so that the session id is appended to the URL or when some special characters are included on url parameters so that such characters are converted accordingly.
The letter B does not guarantee that the session id will be appended to the URL if the user disables cookies on his browser.
I hope that helps.
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself