This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Dont want the control to return to the servlet and execute after the forward
Sree Lakshmi Sugunan
Greenhorn
Joined: Feb 29, 2008
Posts: 23
posted
0
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.