After migrating to struts 2.3.24 from struts 2.1.8

2019-08-31 03:34发布

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条回答
劫难
2楼-- · 2019-08-31 04:00

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

查看更多
登录 后发表回答