一个登录的小例子,如果登录成功就跳转到欢迎页,不然就返回当前页..我的目录结构是: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>
<!-- 2013.8.16  -->
<package name="first" extends="struts-default" namespace="/"><!-- 定义一个package -->
<!-- 对action返回结果的配置 -->
<action name="loginA" class="action_struts.LoginAction">
<result name="success" type="dispather">/12.2.2.welcome.jsp</result>
<result name="login">/12.2.2.index.jsp</result>
</action>
</package>
<!-- END 2013.8.16 -->
</struts>web.xml<?xml version="1.0" encoding="UTF-8"?>  
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"  
    id="WebApp_ID" version="3.0">  
    <display-name>SSH</display-name>  
    <welcome-file-list>  
        <welcome-file>index.jsp</welcome-file>  
    </welcome-file-list>  
  
    <filter>  
        <filter-name>struts2</filter-name>  
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>  
    </filter>  
  
    <filter-mapping>  
        <filter-name>struts2</filter-name>  
        <url-pattern>/*</url-pattern>  
    </filter-mapping>  
</web-app>action类:package action_struts;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction extends ActionSupport {

private String username ;//用户名
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUserpass() {
return userpass;
}
public void setUserpass(String userpass) {
this.userpass = userpass;
}
private String userpass ;//密码.

public String execute(){//主方法
System.out.print("进入匹配方法");
if("mr".equalsIgnoreCase(username)&& "123".equals(userpass)){//匹配用户名和密码
return SUCCESS;//匹配成功进入欢迎界面.
}
return LOGIN;//匹配失败进入登录界面
}}登录页:<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<s:form action="/loginA.action" method="post">
<s:label value="登录信息"></s:label>
<s:textfield name="username" label="用户名"></s:textfield>
<s:password name="userpass" label="密码"></s:password>
<s:submit value="登录"></s:submit>
</s:form>
</body>
</html>登录成功页:<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
登录成功,欢迎您,<s:property value="username" /><!-- 显示Action中的username属性 -->
</body>
</html>tomcat启动日志:
Aug 16, 2013 2:53:51 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.7.0_13/jre/lib/i386/client:/usr/java/jdk1.7.0_13/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib
Aug 16, 2013 2:53:52 PM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Server/Service/Engine/Context'.
Aug 16, 2013 2:53:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Aug 16, 2013 2:53:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 16, 2013 2:53:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1718 msStruts

解决方案 »

  1.   

    struts.xml应该放在哪里知道否?从你发的图看不出对错,因为可以把lib加入到srcfolder。
      

  2.   

    struts.xml是放在src文件夹里面的,图上src里面那个lib中是struts的jar包,而且我把struts的所有jar包都添加到Java ReSources下的Libraries里面了.是不是需要把Struts的jar包放到系统的CLASSPATH里面去?
      

  3.   

    struts.xml是放在src文件夹里面的,图上src里面那个lib中是struts的jar包,而且我把struts的所有jar包都添加到Java ReSources下的Libraries里面了.是不是需要把Struts的jar包放到系统的CLASSPATH里面去?放在webinf的lib下就够了。eclipse会自动加载。
      

  4.   

    还是不行,日志
    :Aug 16, 2013 3:50:14 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.7.0_13/jre/lib/i386/client:/usr/java/jdk1.7.0_13/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib
    Aug 16, 2013 3:50:15 PM org.apache.tomcat.util.digester.Digester endElement
    WARNING:   No rules found matching 'Server/Service/Engine/Context'.
    Aug 16, 2013 3:50:15 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Aug 16, 2013 3:50:15 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    Aug 16, 2013 3:50:15 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1654 ms
    Aug 16, 2013 3:50:15 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Aug 16, 2013 3:50:15 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.35
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor /home/puruidong/JavaEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/Test1063.xml
    Aug 16, 2013 3:50:17 PM org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Test1063' did not find a matching property.
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor /home/puruidong/JavaEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/N12Struts.xml
    Aug 16, 2013 3:50:18 PM org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:N12Struts' did not find a matching property.
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
      

  5.   

    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 16, 2013 3:50:20 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 16, 2013 3:50:20 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts-default.xml]
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts-plugin.xml]
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Unable to locate configuration files of the name struts.xml, skipping
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts.xml]
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
      

  6.   

    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (org.apache.struts2.views.freeer.FreeerManager)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
    Aug 16, 2013 3:50:21 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
    Aug 16, 2013 3:50:21 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor /home/puruidong/JavaEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/jQuery_Ajax.xml
    Aug 16, 2013 3:50:21 PM org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jQuery_Ajax' did not find a matching property.
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor /home/puruidong/JavaEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/JAVAWEB24.xml
    Aug 16, 2013 3:50:22 PM org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JAVAWEB24' did not find a matching property.
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 16, 2013 3:50:23 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 16, 2013 3:50:24 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts-default.xml]
    Aug 16, 2013 3:50:24 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
    Aug 16, 2013 3:50:24 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts-plugin.xml]
    Aug 16, 2013 3:50:24 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts.xml]
    Aug 16, 2013 3:50:24 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
      

  7.   

    你先把之前没删干净的Test1063之类的项目删了再说吧。
      

  8.   

    namespace="/"  去掉试试看
      

  9.   

    <s:form action="/loginA.action"    会不会是多了个“/”.改成action="loginA.action" 试试可以不 
      

  10.   

    已经解决了,谢谢楼上的各位。地址 http://www.07q.net/read/1945.html