I am able to get data from doPost() in java servlet and process the data accordingly. After that, i need to send a redirection response which I am not clear about. I intend to send the redirection page to an external php site.Anyone would share with me how could this be achieved? I have tried response.sendRedirection(URL); in doPost(), but it is not working and not redirect me to any new page.
Thanks for reading.
The method is response.sendRedirect() not response.sendRedirection(). That could be why you’re getting the error.