日期:2014-05-17  浏览次数:20610 次

jsp引入action
一个 jsp页面 我想在当中 导入一个action 

比如
<%@ include file="showNews.action?type=1" %> 报错
<jsp:include page="showNews.action?type=1" flush="false"/ > 报错
<s:action name="showNews" executeResult="true"><s:param name="type">1</s:param></s:action> 直接导入 不会执行action
<s:include value="showNews.action?type=1" />报错


想在jsp页面当中 导入一个执行完后的action返回结果 该怎么导入那?


ajax或者其他的 我也知道 我是想问问 向是这样include的方法 有没有 万分感谢

------解决方案--------------------
<jsp:include page="{relativeURL | <%= expression %>}" flush="true" > 
 <jsp:param name="parameterName" value="{parameterValue | <%= expression %>}" />+ 
</jsp:include> 
后面的参数 相当于...?parameterName=value
------解决方案--------------------
探讨
一个 jsp页面  我想在当中  导入一个action

比如
<%@ include file="showNews.action?type=1" %> 报错
<jsp:include page="showNews.action?type=1" flush="false"/ > 报错
<s:action name="showNews" executeResult="true"> <s:param name="type">1 </s:param> </s:action> 直接导入 不会执行action
<s:include value="showNews.action?type=1" />报错


想在jsp页面当中 导入一个执行完后的action返回结果    该怎么导入那?


ajax或者其他的 我也知道  我是想问问  向是这样include的方法  有没有    万分感谢