sendRedirect(...) to a page inside a .war file

This question is from Niko's mock exam.
There is a top-level folder help in the war file with index.html inside. What is the output of this code? (1 correct answer)
response.sendRedirect("/help/index.html");

Bear Bibeault wrote:Think about it for a minute. What issues the redirect? The server? The browser? Other?

Ummm.. a redirect is issued by the server to the browser? (redirecting to xyz Url)

According to the API, the server would convert the relative URL to absolute URL before sending the redirect back to the browser. So "/test/index.html" would become "http://www.example.com/myapp/test/index.html" . So still not sure why the browser would not find it?

Does it have something to do with the 'servlet container root' instead of 'application root'?

I think whatever Pedro said is correct.
the response.sendRedirect() method expects its path parameter to be relative to the server root, not the webapp root. Thus, to send a redirect to the above URL from a servlet running , you must say

During a redirect the server sends headers to the browsers, which in turn, issues the new request. All requests from the browser need to include the context path, otherwise the container would have no idea what application to contact.