I use requestDispatcher.forward under an if condition in my servlet. After this line there are some code. I dont want the control to come back and execute the code. Is there are any option we can set in the request or response so it doesnt come back to the servlet.
Actually this method is called by some other methods so even if I put return it will go back to tht method and execute the remaining part of the following methods. So return doesnt work in my case. Is there any other option that the control soesnt come back itself.