aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy 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 ( will be opened inside a frame (an iframe).
When I click the link in the mainframe, I only say <a href="" target="rightframe">.
In that 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: 32077

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Forward Pages into a Frame