wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60741
    
  65

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]
 
Don't get me started about those stupid light bulbs.
 
subject: Browser URL displayed is different from current Servlet
 
Similar Threads
Endpoint in WSDL
request object from http to https
Problem in POST request
Java application(not browser) and Servlet/HttpSession tracking
question on servlet-mapping