在向Struts 2.3.16.3提交之后:提交不起作用
我最近升级到Struts 2.3.16.3,即2.3.15.1版本的最新版本
现在我的提交按钮在我使用时停止工作 –
我的动作映射如下 –
login.tiles /jsp/common/success.jsp
我的struts.xml如下 –
我的web.xml如下 –
eSchoolMate struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter actionPackages com.mypackages struts2 *.action struts2 /struts/* org.apache.struts2.tiles.StrutsTilesListener sessionListener com.emsproject.action.common.SessionListener tilesDefinitions /WEB-INF/tiles.xml /jsp/common/index.html MyInfo com.mypackage.action.common.MyServlet MyInfo /eapp/*
我尝试了发行说明中提到的排除参数更改,但似乎没有任何效果。
如果我更改s:提交到HTML输入类型按钮并从javascript调用操作如下 –
function callLogin(){ document.getElementById('sysForm').target="_self"; document.getElementById('sysForm').action='/coms/common/Login_loginUser.action'; document.getElementById('sysForm').submit(); }
这很好但在整个应用程序中它将是一个巨大的变化:(。
不知道为什么在这个版本中没有解决动作映射,因为在Struts 2.3.15.1中一切正常。
任何帮助将非常感激。
谢谢
最新版本发生了许多安全修复程序,包括S2-016 ,因此默认情况下会禁用某些function或function。 要在submit
标记中启用using action
属性,请在struts.xml
使用以下常量