aspose file tools*
The moose likes Servlets and the fly likes Forwarding A Servlet Response in the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding A Servlet Response in the URL " Watch "Forwarding A Servlet Response in the URL " New topic
Author

Forwarding A Servlet Response in the URL

B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Hello, I'm trying to forward some posted variables from form A to this servlet where I am adding one more then forwarding it on. How can I get it to forward and show up in the URL window instead how I'm doing it here with the servlet context?


Thanks for some help
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Okay maybe that was a bad way to put it. Here is a simpler version thats easier to answer I think.

is there a way that I can use the
RequestDispatcher.forward(request,response) method to forward a request
to an URL outside the current server?

-thanks, this probably makes more sense.....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

No


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Originally posted by Bear Bibeault:
No


I didnt think so
Faxin Zhao
Greenhorn

Joined: Jul 18, 2003
Posts: 16
this is what I want to know.

I also want to call a servelt one aonther server using getServletContext().getRequestDispatcher(String), but it seemed the String must begin with "/". That means we can only call a relative servlet. I'm still looking for some other way and look for help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forwarding A Servlet Response in the URL