今天遇到一个很奇葩的问题,就是我在没有动过struts.xml情况下,无端端地执行action会出现下面的情况:
Unable to instantiate Action, action.UsersAction, defined for 'Users_login' in
namespace '/users'action.UsersAction - action - file:/D:/tomcat/webapps/Sapt/WEB-INF/
classes/struts.xml:12:63
而且执行登陆的action也是没有问题的,以下是我的struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<constant name="struts.i18n.encoding" value="UTF-8" />
<package name="default" namespace="/" extends="struts-default">
</package>
<package name="users" namespace="/users" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="login_success">/users/Users_login_success.jsp</result>
<result name="login_failure">/users/Users_login.jsp</result>
<result name="logout_success">/users/Users_login.jsp</result>
<result name="input">/users/Users_login.jsp</result>
</action>
</package>
<package name="students" namespace="/students" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="query_success">/students/Students_query_success.jsp</result>
<result name="add_success">/students/Students_add_success.jsp</result>
<result name="save_success">/students/Students_modify_success.jsp</result>
<result name="save_fail">/students/Students_modify_fail.jsp</result>
<result name="modify_success">/students/Students_modify.jsp</result>
<result name="queryone_success">/students/Students_queryone.jsp</result>
<result name="Query_result">/students/Students_Query_result.jsp</result>
<result name="Query_noresult">/students/Students_Query_noresult.jsp</result>
<result name="delete_success" type="chain">Students_query</result>
<result name="Login_success">/students/Students_login_success.jsp
</result>
<result name="Login_failure">/students/Students_login.jsp</result>
<result name="add_student">/students/Students_add.jsp</result>
<result name="input">/students/Students_add.jsp</result>
<result type="redirect" name="add_student_success">/students/Students_add.jsp</result>
<result type="redirectAction" name="selectByCondition">Students_selectByCondition.action</result>
</action>
</package>
<package name="webStudent" namespace="/webStudent" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="input">/webStudent/webStudent_inputExcel.jsp</result>
<result name="inputExcel_success">/webStudent/webStudent_inputExcel_success.jsp
</result>
<result name="inputExcel_failed">/webStudent/webStudent_inputExcel_failed.jsp
</result>
</action>
</package>
<package name="score" namespace="/score" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="scoreQuery_success">/score/Score_query_success.jsp</result>
<result name="addScore_success">/score/AddScore_success.jsp</result>
<result name="updateScore_success">/score/UpdateScore_success.jsp</result>
</action>
</package>
<package name="sign" namespace="/sign" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="AddSign_success">/sign/AddSign.jsp</result>
</action>
</package>
<package name="database" namespace="/database" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
</action>
</package>
<package name="excel" namespace="/webScore" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="success">/score/listUI.jsp</result>
</action>
</package>
<package name="class" namespace="/class" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="listUI">/class/listUI.jsp</result>
<result name="listStudentUI">/class/listStudentUI.jsp</result>
<result name="input">/class/addUI.jsp</result>
<result type="redirectAction" name="listUIAction">Class_listUI.action</result>
</action>
</package>
<package name="scores" namespace="/scores" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="listUI">/score/listUI.jsp</result>
<result name="listClassUI">/score/listClassUI.jsp</result>
</action>
</package>
</struts>
然后我就按照它提示的路径打开tomcat里的struts.xml,发现内容没错啊。我猜系myeclipse sort佐,重启一下就ok了。
相关推荐
stdin, stdout, stderr = ssh.exec_command('command_to_execute') output = stdout.read().decode() error = stderr.read().decode() ssh.close() ``` 在这个例子中,我们创建了一个`SSHClient`实例,但只...
在软件开发领域,XML(Extensible Markup Language)作为一种数据交换格式,被广泛应用于配置文件、数据存储和网络通信等领域。Eclipse作为一款强大的开源集成开发环境(IDE),提供了丰富的插件支持,以增强其功能...
出于研究目的,发布了 Stable Video Diffusion,这是一种图像到视频模型: SVD:此模型经过训练以生成 14 分辨率为 576x1024 的帧,给定相同大小的上下文帧。 我们使用 SD 2.1 中的标准图像编码器,但将解码器替换...
registerReceiver(myReceiver, new IntentFilter("com.example.MY_ACTION")); } @Override protected void onDestroy() { super.onDestroy(); unregisterReceiver(myReceiver); // 在组件销毁时取消注册 } }...
WebService是一种网络服务技术,允许在不同操作系统和编程语言之间实现应用程序的通信。Axis2是一个高效、模块化的Web服务引擎,用于构建和部署Web服务和客户端。Axis2不仅支持SOAP协议,还支持REST风格的服务,同时...
解决目前memcached不支持hibernate4的缺陷,hibernate配置<property name="hibernate.cache.region.factory_class">com.googlecode.hibernate.memcached.MemcachedRegionFactory</property>
dpoll ... 最初创建于 安装 $ python3 -m venv dpoll-env $ tmp source dpoll-env/bin/activate ...$ cd dpoll.xyz $ pip install -r requirements.txt $ touch dpoll/base/settings.py dpoll/base/local_settings.py ...
For users that have reported very slow autocompletion when running on Windows 10 with 3 monitors, this should now be fixed. This build includes a workaround for a .NET security issue.
"Instantiate-blocks.c"文件可能涉及到了Objective-C的Block对象在多线程环境下的实例化和使用。Blocks是Objective-C的一个特性,类似于匿名函数,允许代码块作为第一类对象进行传递和存储。在多线程环境中,创建和...
6. `d_instantiate`:该函数在将dentry(文件系统中的目录项)实例化为inode时调用,以确保文件系统的安全性。 7. `getprocattr` 和 `setprocattr`:这些函数分别用于获取和设置进程的属性,通常在权限管理或审计时...
4) Instantiate the symbol in the BDF by double-clicking in the empty space of the BDF file and selecting "Project -> <symbol filename>" 5) Instantiate pins in the BDF by double-clicking empty space...
在描述中提到的“Instantiate a public key crypto key in an X.509 Certificate”意味着我们要在X.509证书中创建或使用一个公钥加密密钥。 1. **X.509证书结构**: - **版本**:标识证书的版本号,通常为v3。 - ...
julia> Pkg.instantiate();这应该安装在此项目特定的Julia环境中运行此代码所需的所有软件包。 当前代码(当前处于早期beta模式)可以通过以下命令从终端运行: $ cd src$ julia comoto.jlROS RobotOS.jl进行Python...
<br> 测试代码完成测试 <br> 报错:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory <br> 添加 引用 <br>继续报错是因为JNDI访问名称错误,也是用了原来的那个了。哈哈。...
3. **对象实例化**:在Unity中,可以使用Instantiate函数动态创建游戏对象,如食物。每次蛇吃掉食物后,新的食物会在随机位置生成。 4. **脚本组件**:Unity的游戏对象可以通过添加脚本组件来扩展其行为。例如,...
// Use this for initialization void Start () { m_spriteAnimation.AddFrameCallBack("attack", 1, AttackCallBack); m_spriteAnimation.AddFrameCallBack("attack", 4, AttackCallBack); m_spriteAnimation....
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
this._touchNode = cc.instantiate(this.nodeMoney); this._touchNode.active = true; this._touchNode.parent = this.nodeMoney.parent; this.nodeGuide.active = false; }, onTouchMove(event){ ...