my dog learned polymorphism*
The moose likes Servlets and the fly likes Forward from one servlet to another servlet!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forward from one servlet to another servlet!!" Watch "Forward from one servlet to another servlet!!" New topic
Author

Forward from one servlet to another servlet!!

Ravi Kumar Ravuru
Ranch Hand

Joined: Apr 18, 2002
Posts: 176
Hello Folks,
I have two webapps on two servers.Can i forward the request,response of a servlet present in one server to the servlet present on another server.Is it Possible.Awaiting ur reply.
Regards,
Ravi
Rangarajan Suresh
Ranch Hand

Joined: Jan 08, 2002
Posts: 50
Originally posted by Ravi Kumar R.S:
Hello Folks,
I have two webapps on two servers.Can i forward the request,response of a servlet present in one server to the servlet present on another server.Is it Possible.Awaiting ur reply.
Regards,
Ravi

Hi,
you can not forward the request to a servlet on a diff server,
since only relative paths are allowed in getRequestDispatcher and getContext.
Probably, you can add an alias for the servlet on the other m/c in one of the servers and forward the request to that alias.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forward from one servlet to another servlet!!
 
Similar Threads
Retrieving parameters from jsp
Servlet Chaining
Capturing form values in scriplet within the same JSP
Forwarding requests between servlets
forwarding the request ?