This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets and Breaking out of frames

 
jodi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with breaking out of frames or setting the target to another frame.
When i post a form from the left hand side, I want to refresh and show the results in the right pane. Problem is, I can't use an <A HREF target=top> (i need to post form results back to the servlet). Also, javascript is supposed to be used sparingly, so I would like to avoid it if possible, but any suggestions would be greatly appreciated.
Right now I have the servlet going to a save method and then sendRedirect() to the frameset method, and of course it just loads the whole thing into the left pane!! I was hoping that I could put the link target in the sendRedirect(url) argument list, but it only accept an absolute url, not an HTML tag.
I am at a loss, any advice would be great! thanks, jodi
 
jodi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops, brain freeze, you can just name the frames and set the target of the form
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic