我当前有一个列表页A,点击相应的名称,请求新的页面。新的页面为框架,名称为Frame.jsp,左边是目录left.jsp,右边是详细内容right.jsp,我用的是struts2框架。(是否红色部分有误,或者struts.xml不正确)列表页的请求Frame框架页,语句我是这样写的
<a href="showdata.action?tcd=<s:property value="tcd"/>&ecd=<s:property value="ecd"/>" target="leftFrame">Open</a>
再下一个页面的地址输入栏中能显示我传过去的参数值,如:
http://localhost:8080/system/showdata.action?tcd=1111&ecd=2222
但是应该根据我传过去的参数执行showdata.action,在左侧的目录中显示目录信息,可是现在不能显示,我不知道是哪里错了。请大家帮忙。
Frame.jsp的代码:
<frameset rows="*" cols="315,*" framespacing="0" frameborder="yes"border="0">
<frame src="showdata.action" name="leftFrame" scrolling="no"
noresize="noresize" />
<frame src="" name="rightFrame" scrolling="yes" noresize="noresize" />
</frameset>struts.xml的代码:
<action name="Frame">
<result>/jsp/Frame.jsp</result>
</action>
<action name="Left" method="showdetail" class="com.alveole.edisysdata.Action">
<result>/jsp/Left.jsp</result>
</action>
<action name="Right" method="showdetail" class="com.alveole.edisysdata.Action">
<result>/jsp/Right.jsp</result>
</action>