为什么我配置最框架老是报错。 Struts2.0框架

struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="CSD" extends="struts-default">
<action name="login" class="com.ssi.action.login">
<result name="success">/welcome.jsp</result>
</action>
</package>
</struts>
这个肯定没问题吧。

package com.ssi.action;

public class login {

public String excute(){
return "success";
}
}

这个也没问题吧。

但是就是报错 。

HTTP Status 404 - There is no Action mapped for namespace / and action name
login.

你jsp页面 怎么写的 ……
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜