• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

breaking out of frameset upon Actionforward

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic