About Servlets?
What is the difference between using response.sendRedirect( html file ) and out.println( window.location = html file ). Please guide.
[133 byte] By [
mdsalman] at [2007-11-11 10:16:20]

# 1 Re: About Servlets?
In sendRedirect the server sends a Http status code 301 to the browser informing that the requested resource is moved permanently to the new location. So the browser re request to the new location.
In the second case, changing the location with the help of client side script. Both the cases the broswer will send a Http GET request.