Is there any similiar methods to that of sendredirect in java?
hi friend, In my knowledge there is no any method similar to that of sendRedirect()in Java. I think you should know about the following :
There is a forward() method of RequestDispatcher that is used for transferring the control from one resource to another resource, if available within the container or within the server.
And the method sendRedirect() is a method of HttpServletResponse that temporary redirects the response to the client. The response is redirected to the specified location URL. In this method the control can be transferred between different servers or domains.
For detail tutorial you can visit the link RequestDispatcher vs sendRedirect.
I hope this may helpful for you.