Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Response.sendRedirect() to top page?

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My servlet is loaded in a frame. When I click Submit, this servlet uses Response.sendRedirect() to go to another page. This new page is loaded in the same frame as the servlet.
How can I have the new page be loaded in the top page (the parent of the frames) so that the new page takes the whole browser window?
Thanks!
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting the attribute
target="_top"
in the <form> tag that contains your submit button.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ron!
It works.
 
expectation is the root of all heartache - shakespeare. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!