日期:2014-05-18  浏览次数:20581 次

在struts中,一个A的action指向index.jsp页面,我想在该jsp页面中包含另一个b的action,
在struts中,两个action,我想在一个jsp中同时包含这两个action
我该如何做呢,
如果只是jsp的话,只要 <%@   include   file= "head.jsp "   %>
但现在是action我该如何做呢
 
一个A的action指向index.jsp页面,我想在该jsp页面中包含另一个b的action,

我该如何做呢

------解决方案--------------------
在struts中,可以这样的 <bean:include id= "head " forward= "head "/> <bean:write name= "head " filter= "false "/> 来包含另一个action的,不过 forward= "head "中的head是全局的跳转。
在jsp中也可以用类似的方法做的,具体的我记不清楚了。