File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Forward Pages into a Frame" Watch "Forward Pages into a Frame" New topic
Author

Forward Pages into a Frame

Meyer Florian
Ranch Hand

Joined: Oct 20, 2003
Posts: 62
Hey!
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
Marshal

Joined: May 26, 2003
Posts: 31050
    
162

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.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forward Pages into a Frame