Results 1 to 1 of 1
- 10-26-2013, 05:59 PM #1
Member
- Join Date
- Oct 2013
- Posts
- 2
- Rep Power
- 0
How does function terminate with RequestDispatcher.forward
As I understand when we do RequestDispatcher.forward the code after that forwargind is not executed. If so I don't understand why and how it's implemented without return; statement. Please, explain it if you know.
Java Code:protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher dispatcher =request.getRequestDispatcher("newjsp.jsp"); dispatcher.forward(request, response); ... out.println("This line of code must be ignored!"); }
Similar Threads
-
How to use array (double) and to terminate?
By emtu in forum New To JavaReplies: 3Last Post: 09-20-2012, 03:26 PM -
Question about RequestDispatcher
By hei1233212000 in forum Java ServletReplies: 1Last Post: 04-10-2011, 08:32 AM -
how can terminate the string
By abhay23k in forum Threads and SynchronizationReplies: 4Last Post: 08-10-2010, 09:25 PM -
event that terminate function
By itaipee in forum AWT / SwingReplies: 6Last Post: 12-08-2009, 04:15 PM -
<jsp:include> Vs <%@include> Vs <jsp:forward> Vs RequestDispatcher .forward/includeVs
By freddieMaize in forum Java ServletReplies: 5Last Post: 07-29-2008, 03:13 PM
Bookmarks