aspose file tools*
The moose likes Struts and the fly likes breaking out of  frameset upon Actionforward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "breaking out of  frameset upon Actionforward" Watch "breaking out of  frameset upon Actionforward" New topic
Author

breaking out of frameset upon Actionforward

waseem nadaf
Greenhorn

Joined: Mar 28, 2007
Posts: 10
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

Joined: May 26, 2003
Posts: 30967
    
158

Waseem,
When you create the form in HTML, you can use "_new" to break out of the frameset.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
waseem nadaf
Greenhorn

Joined: Mar 28, 2007
Posts: 10
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

Joined: Mar 28, 2007
Posts: 10
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: breaking out of frameset upon Actionforward