After migrating to struts 2.3.24 from struts 2.1.8, no response to action on login page

女生的网名这么多〃 提交于 2019-12-12 05:27:53

问题


My application displays the login page, but cannot login.

On the login page, user enters the username and password but on pressing the login button nothing happens.

We have in our JSP :

<s:form id="loginForm" name="loginForm" action="login" namespace="/framework">

The struts-framework.xml file has the action defined as follows:

<global-results>
        <result name="loginShow" type="redirect">loginShow.action</result>
        <result name="toMain">/page/framework/main.jsp</result>
        <result name="logout">/page/framework/logout.jsp</result> 
</global-results>
<action name="login" class="com.abc.action.framework.LoginAction" method="loginCheck"> </action>

In our logs we get the Request start for the action framework/login.action, but no response is obtained thereafter and same is evident from the logs.

For reference I have included the following to my struts.xml after migrating struts to 2.3.24 :

<constant name="struts.enable.DynamicMethodInvocation" value="true" />

回答1:


Thanks for all your efforts. It was an issue with struts-convention plugin.Works well for me on removing this plugin and mapped dependancies in struts.xml



来源:https://stackoverflow.com/questions/34671001/after-migrating-to-struts-2-3-24-from-struts-2-1-8-no-response-to-action-on-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!