从Struts 2.1.8迁移到Struts 2.3.24之后,登录页面上的操作无响应 [英] After migrating to struts 2.3.24 from struts 2.1.8, no response to action on login page

查看:48
本文介绍了从Struts 2.1.8迁移到Struts 2.3.24之后,登录页面上的操作无响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序显示登录页面,但无法登录.

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.

我们在我们的JSP中:

We have in our JSP :

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

struts-framework.xml文件的操作定义如下:

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>

在我们的日志中,我们获得了操作framework/login.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.

作为参考,在将struts迁移到2.3.24之后,我在struts.xml中包括了以下内容:

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" />

推荐答案

感谢您的所有努力.这是struts-convention插件的一个问题.对我来说,删除该插件和struts.xml中的映射依赖关系效果很好

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

这篇关于从Struts 2.1.8迁移到Struts 2.3.24之后,登录页面上的操作无响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆