这是我的代码:我自己看的眼都花了。请大家帮我看看
struts-config.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"><struts-config>
  <data-sources />
  <form-beans />
  <global-exceptions />
  <global-forwards />
  <action-mappings >
    <action path="/add" 
     scope="request"
     input="/add.jsp"
       type="org.springframework.web.struts.DelegatingActionProxy"/>  </action-mappings>  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
  
  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
  </plug-in>
</struts-config>
applicationContext.xml<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="jdbc" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/ssh3"></property>
<property name="username" value="root"></property>
<property name="password" value=""></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="jdbc" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>/entity/User.hbm.xml</value></list>
</property></bean>
<bean id="hibernateTemplate" 
  class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>

<bean id="userDAO" class="dao.UserDAO">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>

<bean id="UserService"
class="service.UserService">
<property name="userDao">
<ref bean="userDAO" />
</property>
</bean>

<bean name="/add" class="action.MyAction">
<property name="userService">
<ref bean="UserService"/>
</property>
</bean>
</beans>add.jsp<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>My JSP 'add.jsp' starting page</title>
  </head>
  
  <body>
    <form action="/add">
    <input type="text" name="username"/>
    <input type="password" name="password"/>
    
    <input type="submit" value="confirm">   
    </form>
  </body>
</html>
action package action;
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;import service.UserService;import entity.User;
/** 
 * MyEclipse Struts
 * Creation date: 12-29-2009
 * 
 * XDoclet definition:
 * @struts.action validate="true"
 */
public class MyAction extends Action {
/*
 * Generated Methods
 */ /** 
 * Method execute
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return ActionForward
 */
private UserService userService;
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
// TODO Auto-generated method stub
String username=request.getParameter("username");
String password=request.getParameter("password");

User user=new User(username,password); userService.addUser(user);



return null;
}

public UserService getUserService() {
return userService;
} public void setUserService(UserService userService) {
this.userService = userService;
}
}
用的tomcat5 和myeclipse6.5 各种包都添加了。手动添加了spring.jar和 spring-struts.jar的包。
出现的错误如下:
HTTP Status 404 - /add--------------------------------------------------------------------------------type Status reportmessage /adddescription The requested resource (/add) is not available.
--------------------------------------------------------------------------------Apache Tomcat/5.5.23菜鸟,没人指导。都是自己琢磨,请大家指教