关于tiles的问题
看了书:
<action-mappings>
<action path="/index" type="org.apache.struts.actions.ForwardAction"
parameter="index-definition">
</action-mappings>
从上面可以看出:通过struts action,我们可以跳转到组件index-definition
问题:
1。org.apache.struts.actions.ForwardAction是不是可以是普通的action?我们作struts都是基础action来的。
2。如果要在action里面的代码里面,我们要怎么写跳转语句?return mapping.findForward("index-definition")??
我的已经就象普通的action一样
<forward name="xxx" path="/xxx.jsp">一样
<forward name="xxx" type="org.apache.struts.actions.ForwardAction"
parameter="index-definition">可以嘛?
谢谢,求教