一个struts2 零配置的问题
一 我的JSP的form.action
form1.action="/strute2Test/login!sendMes.do"
二 web.xml
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>com.test</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
三 我的Action
package com.test;
public class LoginAction extends ActionSupport {
public String sendMes()
{
return "";
}
}
我提交的时候,总是映射不到sendMes这个方法.错误:
The requested resource (/strute2Test/com.test/login!sendMes.do) is not available.
请问是怎么回事啊?