Hi All, Can anyone help me out on this one? Which of the following are true wrt sendRedirect method of HttpServletResponse? A. Sets the Location Header B. Path can be only relative C. To support clients w/o redirect capability, method writes a short response body that contains a hyperlink to the new location D. Must be called after response is committed else throws IllegalStateException Select any two.
Originally posted by Linda Xu: The answer should be A and B. C is unnecessary. D is exactly the wrong answer, redirect should happen BEFORE the response is committed
Hi Linda, I think the answer should be A and C. B is incorrect the path can be absolute and relative C is correct, when the browser w/o redirect capability, method writes a short response body that contains a hyperlink to the new location. Best Regards, Roy [ January 28, 2003: Message edited by: Roy Cantos ]