Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server to server call

 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try sendRedirect instead of dispatcher.
 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic