• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

call a jsp in different server

 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic