用struts2和Hibernate做一个简单的登录注册界面,但是好像每次打开浏览器都是出错,我新学struts2,比较费解,望高手帮我解决一下、
这是我的项目:

web.xml的配置:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name></display-name>
<filter>
<filter-name>struts</filter-name>
<filter-class>org.apache.Struts 2.dispatcher.FilterDispather</filter-class>
</filter>
<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<taglib>
<taglib-uri>/s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
<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>
struts2.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>
<package name="strutsqs" extends="struts-default">
<action name="login1" class="lee.LoginAction">
<result name="error">/error.jsp</result>
<result name="success">/welcome.jsp</result>
</action>
</package>
</struts>
hibernate.cfg.xml的配置:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.pool_size">5</property>
<property name="current_session_context_class">thread</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/hibernate
</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">true</property>
<property name="myeclipse.connection.profile">
hibernate
</property>
<!-- <property name="hbm2ddl.auto">create</property>-->
<mapping resource="example/User.hbm.xml" />
</session-factory>
</hibernate-configuration>
问题是:每次输入的时候,浏览器都报404错误
