Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding A Servlet Response in the URL

 
B Wiley Snyder
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No
 
B Wiley Snyder
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
No


I didnt think so
 
Faxin Zhao
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic