jsp - respone.sendRedirect() works fine in firefox but not in IE6 -
i have servlet redirects jsp page using response.sendredirect(), works fine in firefox, in ie6 not redirect page. can me please?
this might you: http://www.coderanch.com/t/443561/servlets/java/sendredirect-working.
public void editquery() throws ioexception { string url = request.getcontextpath() + "/search.jsp"; url = response.encoderedirecturl(url); //url = response.encodeurl(url); response.setheader("pragma", "no-cache"); response.setheader("cache-control", "no-cache"); response.setheader("expires", "1"); response.sendredirect(url); }
please note ie6 no longer maintained. microsoft publishes no security fixes makes unsafe browser.
Comments
Post a Comment