初学struts2,用到Struts2标签时 遇到如下警告
</pre>警告: No configuration found for the specified action: 'test1' in namespace: ''. Form action defaulting to 'action' attribute's literal value.2016-10-26 17:45:42 org.apache.struts2.components.ServletUrlRenderer warn警告: No configuration found for the specified action: 'test1' in namespace: ''. Form action defaulting to 'action' attribute's literal value.<p></p><p></p><p>Struts.xml文件</p><p></p><pre name="code" class="java"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="test1" class="action.TestAction1">
<result name="success">/success.jsp</result>
</action>
</package>
</struts>
index.jsp文件
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<s:form action="test1" method="post">
name:<s:textfield name="user.name"></s:textfield>
password:<s:textfield name="user.password"></s:textfield>
<s:submit value="login"></s:submit>
</s:form>
</body>
</html>