Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : How to forward request to servlet running on a different server from first servlet Signup · Login
Author Thread
How to forward request to servlet running on a different server from first servlet
Posted in tutorial: Forwarding and Including Response from other Servlets
·  krmreddy
User
Joined: 28 Dec 2002
Total Posts: 1
How to forward request to servlet running on a different server from first servlet
Posted: 28 Dec 2002
Hi,

I have a requirement to forward the request from servlet A (On server A http://123.123.30.31:8888/TestAServlet) to servley on another server (server B example http://678.897.45.78:80/TestBServlet).

I can not use RequestDispatcher because the servlet is on another server.
Please provide sample code that might might help me in solving this requirement
thanks Ram
·  Sipho
User
Joined: 28 Sep 2003
Total Posts: 2
U can try this
Posted: 30 Oct 2003
U can try this.
response.sendRedirect("Url");

sm squared!!!
·  vivekgoyal1983
User
Joined: 19 Feb 2007
Total Posts: 1
Que.
Posted: 19 Feb 2007
Can we get the response of (URL) back to our servlet?
if no.. then is there any other way to do this

Users Who Have Visited This Thread In Last 24 Hours
5 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.