错误描述:
The content of element type "action" must match "(icon?,display-name?,description?,set-property*,exception*,forward*)".
这个错误主要是我在struts的配置文件struts-config.xml中通过design视图创建action和forward,配置文件自动生成的配置信息如下:
<action
parameter="method"
path="/stepjudge"
type="com.aa.struts.action.StepjudgeAction">
<forward name="step3" path="/flowtest/step3.jsp" />
<set-property property="cancellable" value="true" />
</action>
这个时候只要将上面的两句调整下位置,错误就没有了。调整后的顺序为:
<set-property property="cancellable" value="true" />
<forward name="step3" path="/flowtest/step3.jsp" />