• 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

server to server call

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

my question is simple,
i hava two weblogic server on two machin,
i am calling simple html file and using this html file and action attribute of form tag i am calling one servlet now in this servlet i am using requestDispatcher to call another servlet or html but when i am calling that second servlet i hava to provide absolute path or name of that servlet in requestDispatcher("name");
but what happens when that servlet is on another server
is their any way to call that servlet
 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can try sendRedirect instead of dispatcher.
 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi dema rogatkin ,

thanks for reply,but my question is slightly different.
i know that using sendRedirect we can call another html page

but when we are calling that page using redirect method we are loosing request object



please understand my question


server1 server2

servlet1 servlet2 servlet3 servlet4


requestDispatcher requestDispatcher
servlet1----------------->servlet2 servlet3----------------->servlet4

sendRedirect sendRedirect
servlet1----------------->servlet2 servlet3----------------->servlet4

???
servlet1-------------------->servlet3


now provide solution for ? if you know


thanks
 
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that you can only use requestDispatcher on a single server you can not transer a request from one domain to another.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic