Since 3.0.1 RC1 the bahaviour of sendRedirect seems to have changed can anyone shed any light on whether this is a bug or an intended change. Previously sendRedirect("logonpage") when called in a servlet running on for example mycontext would redirect to http://myhost/mycontext/logonpage it now redirects to http://myhost/logonpage
Having looked at page 41 of servlet 2.3 spec which says "It is legal to call this method with a
relative URL path, however the underlying container must translate the relative
path to a fully qualified URL for transmission back to the client." I believe this is a bug, any clarification would be appreciated.
Unfortunately the answer is "works for me". Can you give me some more info about how it is failing for you. Specifically:
+ what is the requestURI that the redirect is relative to?
+ what is the context path?
+ Are there any forwards or includes involved?
getRequestURI has changed recently to be correct
after a forward.
Can you send this info to email@example.com?