I was reading response.sendRedirect(URL)
response.sendRedirect(URL) used for
sending response back to the browser which in effect say request cannot be handled by me and go to this URL instead. one cannot use this method if one already written something to the response and URL can be relative to the location of this servlet
I have not understood clearly what it means. Why the browser cannot hadle request. Instead it is asking to go to URL. I was thinking URL also eventually run/handled by browser only right. In that case what is the use or purpose of response.sendRedirect(URL)
What practical scenarios we use this. Are there are any alternates to this.
Any links resources ideas highly appreciated. Thanks in advance