This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Browser URL displayed is different from current Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Browser URL displayed is different from current Servlet" Watch "Browser URL displayed is different from current Servlet" New topic
Author

Browser URL displayed is different from current Servlet

Pat Villa
Greenhorn

Joined: Jan 05, 2004
Posts: 19
I'm just wondering why the Browser URL of the previous screen is the one that is displayed
ex.
1.) I call Servlet1 which loads Jsp1 (URL shown is <a href="http://localhost:9080/Web/<b rel="nofollow">Servlet1</b>)" target="_blank">http://localhost:9080/Web/Servlet1)
2.) I call Servlet2 by submitting (Servlet1 accepts the request, forwards to Servlet2, which loads Jsp2) (URL shown is <a href="http://localhost:9080/Web/<b rel="nofollow">Servlet1</b>)" target="_blank">http://localhost:9080/Web/Servlet1)
3.) I call Servlet3 by submitting (Servlet2 accepts the request, forwards to Servlet3, which loads Jsp3) (URL shown is <a href="http://localhost:9080/Web/<b rel="nofollow">Servlet2</b>)" target="_blank">http://localhost:9080/Web/Servlet2)
I'm using WSAD 5.1 on Win2000
Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

Since the browser hasn't the least inkling that you are forwarding around on the server, it displays the URL that it originally submitted.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: Browser URL displayed is different from current Servlet