• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

breaking out of frameset upon Actionforward

 
waseem nadaf
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp page which has 3 frames: Header, Navigator and Main frames.

In the Main frame i have some buttons. When the user clicks on any of these buttons a corresponding action is invoked. Now my requirement is that i want each of the actionforwards to open in the parent window. However the new jsps continue to persist in the Main frame of the frameset.
How do i break out of the frameset upon an actionforward.

Can someone please advise me.

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Waseem,
When you create the form in HTML, you can use "_new" to break out of the frameset.
 
waseem nadaf
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

First of all thanks for your reply.
I am new to html and struts. So could you please tell me where exeactly i need to add "_new" in my jsp. A small piece of code demonstrating the same would be of great help.

Thank you once again.
 
waseem nadaf
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

I figured out where i need to add the "_new" in the jsp:

<html:form method = "post" action="managePsr.do" target="_new">

However this opens the link in an entirely new window. If we want to open the link in the same window then we need replace target="_new" with target="_top".

Thank you so much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic