• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to update the browser address with the displayed page

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic