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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61451
    
  67

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browser URL displayed is different from current Servlet