我想把通过struts.xml文件得到的页面(如a.jsp)显示在一个页面的指定框架中,这该怎么办啊?高手们出来给我指点一下啊,感激不尽啊,急等啊!!!!!!!!!

解决方案 »

  1.   

    <action path="/reply" type="com.creawor.meip.send.ReplyAction"
    scope="request">
    <forward name="replylist"
    path="/WEB-INF/jsp/send/reply.jsp" />
    <forward name="modifyreply"
    path="/WEB-INF/jsp/send/modifyreply.jsp" />
    <forward name="replyaction"
    path="/WEB-INF/jsp/send/reply.jsp" />
    <forward name="failure" path="/prompt.do" />
    </action>
      

  2.   

    用struts2结合sitemesh,
    自己定义decorators模板,然后生成~
      

  3.   

    配置文件配置不出来.代码参照:
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title> </title> 
    </head> 
    <frameset name=topset rows="104,*" cols="*" frameborder="no" border="0" 
    framespacing="0" id="topset"> 
    <frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize" 
    id="topFrameAdmin"/> 
    <frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" /> 
    </frameset> 
    <noframes> 
    <body> 
    </body> 
    </noframes> 
    </html> 以上frame框架,分上下两部分。 
    如果点a.jsp中的链接,内容在frame下部分显示 <a href="请求" target="mainFrameAdmin">test </a>
      

  4.   

    如果是struts2可以用<s:action />标签达到想要的结果。
      

  5.   


    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title> </title> 
    </head> 
    <frameset name=topset rows="104,*" cols="*" frameborder="no" border="0" 
    framespacing="0" id="topset"> 
    <frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize" 
    id="topFrameAdmin"/> 
    <frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" /> 
    </frameset> 
    <noframes> 
    <body> 
    </body> 
    </noframes> 
    </html>
    3楼的大大已经给出了很好的答案
      

  6.   

    各位啊,我要的是从struts.xml文件得到的jsp页面,是未知的,不是定死的,不能用target属性
      

  7.   

    我的意思是让action里面的<result>标签返回的页面显示到一个页面的指定的<iframe>里面,高手啊,出来啊!!!!!!!!!!!