wood burning stoves 2.0
The moose likes Struts and the fly likes Forward Pages into a Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Forward Pages into a Frame" Watch "Forward Pages into a Frame" New topic

Forward Pages into a Frame

Meyer Florian
Ranch Hand

Joined: Oct 20, 2003
Posts: 62
I've got a static mainframe with links, all the pages (xxx.do-actions) will be opened inside a frame (an iframe).
When I click the link in the mainframe, I only say <a href="xxx.do" target="rightframe">.
In that xxx.do I can view addresses and edit them. this edit dialog will be forwarded by "return mapping.findForward("edit").". Will that edit page be shown in the frame or as new top-page in the browser? How or where can I set a frame for the forward page?
thanks for any help!
Florian Meyer
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32633

It would be shown in the frame because that is the target for the link. If you want to change the target, it needs to be done in the HTML before you submit the link. Struts can change the result page, but it cannot change the target.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Forward Pages into a Frame
jQuery in Action, 3rd edition