• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding control from Servlet to JSP

 
kiran nori
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I would like to know how the control flows when a dispatch is called from the do post method of the servlet.
I have the following code:


The output of this code is

In ViewServlet Dispatiching to View.jsp
In after dispatch
in loop 1 at counter value 0
in loop 1 at counter value 1
in loop 1 at counter value 2
in loop 1 at counter value 3
in loop 1 at counter value 4
in loop 1 at counter value 5
in loop 1 at counter value 6
in loop 1 at counter value 7
in loop 1 at counter value 8
in loop 1 at counter value 9
in loop 1 at counter value 10
in loop 2 at counter value 0
in loop 2 at counter value 1
in loop 2 at counter value 2
in loop 2 at counter value 3
in loop 2 at counter value 4
in loop 2 at counter value 5
in loop 2 at counter value 6
in loop 2 at counter value 7
in loop 2 at counter value 8
in loop 2 at counter value 9
in loop 2 at counter value 10
In finally

and the request/response object gets dispatched to the respective JSP. can any one explain the principle behind dispatching the request.
rgds
Kiran Mohan Nori
I added the ubb code tags for easier reading.
[This message has been edited by Carl Trusiak (edited June 28, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic