HTTP Status 404 - There is no Action mapped for namespace / and action name add.--------------------------------------------------------------------------------type Status reportmessage There is no Action mapped for namespace / and action name add.description The requested resource (There is no Action mapped for namespace / and action name add.) is not available.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
解决方案 »
- strut2开发环境搭建时遇到的问题
- 谁来推荐几本JDBC和hibernate教程
- java加载dll报错:不是有效的 Win32 应用程序
- 刚刚学习java.问一下一个小问题
- 这段代码可以在Linux下发邮件吗?(我在windows下没有任何问题.)
- easymock2 测试静态方法问题
- object问题
- 为何程序出错!谢谢!!!!
- 关于tomcat和oracle的问题?(急)
- a question about deploying a simple bean in deploytool of j2eesdk
- 现在的JavaEE开发都还分很多层吗?
- the jar file commons-logging-1.0.4.jar has no source attachment
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.objectFactory" value="spring"/>
<package name="employee" extends="struts-default" namespace="/emp">
<action name="add" class="addBean" method="add">
<result type="redirect">list.action</result>
<result name="input">/emp/add.jsp</result>
</action>
<action name="list" class="listBean" method="list">
<result name="success">/emp/list.jsp</result>
<result name="input">/emp/add.jsp</result>
</action>
</package>
</struts>
<property name="employeeManager">
<ref bean="employeeManager" />
</property>
</bean>
在路径/下没有add这个action
访问应该是serverName/emp/add