*
The moose likes Servlets and the fly likes How to update the browser address with the displayed page 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 "How to update the browser address with the displayed page" Watch "How to update the browser address with the displayed page" New topic
Author

How to update the browser address with the displayed page

Ayaz Khaja
Greenhorn

Joined: Feb 16, 2001
Posts: 4
Scenario : I have a form in an html page which when submitted calls a servlet which does processing and then calls a jsp page. This jsp page displays a html page (which is the html page containg the form) in one frame and a jsp page in other frame.
problem 1:The browser address shows the url of the servlet, instead of the jsp page with frames.
Q. How do you get to display the url of the page being displayed.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
When you say the servlet calls the JSP, exactly how do you do that?
A sendRedirect( "theJspFrame.jsp" ) should show the source of the form, but an include or forward should show the servlet address.
Bill

------------------
author of:
Ayaz Khaja
Greenhorn

Joined: Feb 16, 2001
Posts: 4
First of all thanks for your reply Bill. The frame.jsp page has an html page in one frame and a jsp page in other. The html page has a form, and I am calling the servlet when you submit the form. The servlet does the processing and calls the same frame.jsp again recursively. I have another problem here, the forward from the servlet creates another frameset as the servlet does not know that the frameset already exists. Any ideas how to get rid of this one too.
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to update the browser address with the displayed page
 
Similar Threads
Using JSP to redirect a client browser
basic question based on request & response ...
request.getattribute in servlet is null
HTML Frames and JSP!
How to trap the URL