我是struts 2的新手。当我在struts.xml中添加动作映射时,我正在处理Web应用程序,我得到了以下异常
java.lang.NullPointerException
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
在struts.xml中的我添加了以下代码
<action name="ChangePassword" class="com.my.action.Welcome">
<result name="success" >/changepassword.jsp</result>
</action>
以下是我的欢迎行动
package com.mmi.action;
import com.opensymphony.xwork2.ActionSupport;
public class Welcome extends ActionSupport {
public String execute() {
return "success";
}
}
我在com.my.action包中创建了Welcome操作。不知道该怎么办..