aspose file tools*
The moose likes Struts and the fly likes struts forwarding to a new frameset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts forwarding to a new frameset" Watch "struts forwarding to a new frameset" New topic
Author

struts forwarding to a new frameset

c huisman
Greenhorn

Joined: Mar 17, 2004
Posts: 6
Hello,
I am adding struts to an existing web site and I am having great difficulty performing the following task. In the frameset (idx_frameset1.jsp) their is a navigation frame, title frame and body content frame. I create an
<html:link page="/action.do?action="doAction" >
Do Action
</html:link>
link in the navigation bar. This link goes to the actionAction servlet and then gets mapped to a new frameset (idx_frameset2.jsp) that has a different navigation frame and body content. The problem is that the navigation frame displays the new frameset instead of the new frameset being displayed. My question is, how do I get the new frameset to load instead of loading in the navigation frame (I also do not want to pop up a new window - so no target i guess).
Previous to making the site dynamic an anchored href was used that simple had the frameset name was used. Why can't I just forward to that page?
thanks,
c.
Sheik Abdulla
Greenhorn

Joined: Mar 30, 2004
Posts: 1
Hi,
Use target in the <html:link...> tag.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts forwarding to a new frameset