multiple struts actions on single form not working [duplicate]

拈花ヽ惹草 提交于 2019-12-08 17:41:35
Andrea Ligios

Since Struts 2.3.15.3, you need to explicitly enable the action: suffix with:

<constant name="struts.mapper.action.prefix.enabled" value="true"/>

You may also be interested in reading about the ways to call different actions from a form.

You have missed an action attribute in <s:form> tag. Use action attribute in your code as

    <s:form method="post" enctype="multipart/form-data" action="actionName">
  ....
</s:form>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!