<!-- 配置 -->
<forward name="a" path="a.do" />
<forward name="a" path="a.do" />
<!-- Action中的代码 -->
ActionForwardforward=mapping.findForward("a");
ActionForwardnewForward=newActionForward(forward);
StringnewPath=forward.getPath()+"&id=1"
newForward.setPath(newPath);
returnnewForward;
ActionForwardnewForward=newActionForward(forward);
StringnewPath=forward.getPath()+"&id=1"
newForward.setPath(newPath);
returnnewForward;
<!-- Action中的代码(第二种) -->
return
new ActionForward ("a.do?id=1");