Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

call a jsp in different server  RSS feed

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How redirect a request to a jsp in different server using sendRedirect and jsp:forward and what is the difference
Thanks,
Mathews.
 
perry arora
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all difference between <jsp:fprward> and sendRedirect()..
(1) <jsp:forward> is executed at the server and. the intention is to peform a forward to some another resource with in the server/Context..
(2) But sendRedirect is treates an an separated request from the client
because it is executed at the cleisn machines!
i.e when ever you will use sendRedirect , the response will first send back to client for the present request and a separate request will be issued for the localtion specified in the sendRedirect(). since its a re request so you can specify any URL where you wanna request
Buz of this the scope of resources is more in case of sendRedirect!
I will suggest you to use sendRedirect to transfer the control to some another servlet running in the other server.. as u can mention the complete URL with the needed parameters in the sendRedirect...
I hope This will solve any purpose~!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!