HTTP Status 404 - There is no Action mapped for namespace / and action name Login.
type Status reportmessage There is no Action mapped for namespace / and action name Login.description The requested resource (There is no Action mapped for namespace / and action name Login.) is not available.
--------------------------------------------------------------------------------Apache Tomcat/6.0.20
type Status reportmessage There is no Action mapped for namespace / and action name Login.description The requested resource (There is no Action mapped for namespace / and action name Login.) is not available.
--------------------------------------------------------------------------------Apache Tomcat/6.0.20
解决方案 »
- 关于写博客相关功能的一个问题
- 用S2SH整合项目需要怎么封装上传图片方法
- 关于ssh框架的问题
- tomcat启动时非常慢,麻烦帮忙看看原因,指点下
- ServletException in 'login.jsp': No getter method for property rand of bean org.apache.struts.taglib.html.BEAN
- hibernate 注解如何绑定自定义oracle sequence
- 请教!怎么样实现上传大文件?
- web项目的一个方法运行5个小时之后
- 大神求救。
- 错误:尝试打开文件***.jar时出现意外错误
- ejb jpa jndi jta事务控制,remote 为什么不起作用
- IBATIS里怎样根据传入参数拼接where子句
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd"><struts>
<package name="example" namespace="/" extends="struts-default">
<action name="Login" class="action.LoginAction">
<result>/Resutl.jsp</result>
<result name="input">/login.jsp</result>
</action>
</package>
</struts>
这是 struts.xml
这是 login.jsp
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path=request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>登录系统</title>
</head>
<body><br><br><br><br>
<div align="center">
${requestScope.message}
<s:form action="Login" method="POST">
<s:textfield name="userName" label="用户名"/>
<s:password name="password" label="密码"/>
<s:submit value="提交"/>
</s:form>
</div>
</body>
</html>
2010-8-13 22:09:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: No configuration found for the specified action: 'Login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.这样的警告
改为< s:form action="/Login" method="POST">
action 应该等于 namespace + acionName