Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Response.sendRedirect() to top page?  RSS feed

 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!