register.jsp中代码<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>"> <title>My JSP 'register.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head>
<body>
<form action="save.action">
username:
<input type="text" name="username" size="20">
<br>
password:
<input type="password" name="password" size="20">
<br>
age:
<input type="text" name="age" size="20">
<br>
<input type="submit" value="submit">
<input type="reset" value="reset">
</form>
</body>
</html>struts.xml中代码<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="hibernate" extends="struts-default" >
<action name="save" class="com.test.action.PersonAction" method="save">
<result name="success">/listAll.jsp</result>
</action>
</package>
</struts>web.xml中代码<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <filter>
<filter-name>hibernate</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter> <filter-mapping>
<filter-name>hibernate</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping></web-app>PersonAction.java中代码package com.test.action;import java.util.List;import javax.servlet.http.HttpServletRequest;import org.apache.struts2.ServletActionContext;import com.hibernate.model.Person;
import com.hibernate.persistence.DBPerson;
import com.opensymphony.xwork2.ActionSupport;import freeer.template.utility.Execute;public class PersonAction extends ActionSupport
{
private int id; private String username; private String password; private int age; public int getId()
{
return id;
} public void setId(int id)
{
this.id = id;
} public String getUsername()
{
return username;
} public void setUsername(String username)
{
this.username = username;
} public String getPassword()
{
return password;
} public void setPassword(String password)
{
this.password = password;
} public int getAge()
{
return age;
} public void setAge(int age)
{
this.age = age;
}

public String save() throws Exception
{
Person person = new Person(); person.setUsername(username); person.setPassword(password); person.setAge(age); java.sql.Date registerDate = new java.sql.Date(new java.util.Date()
.getTime());
person.setRegisterdate(registerDate); DBPerson.save(person);

List<Person> list=DBPerson.listAll();

HttpServletRequest requeset=ServletActionContext.getRequest();

requeset.setAttribute("list", list);

return "success";

}
}进入register.jsp点submit按钮后会出现提示“The requested resource(/hibernate/save.action)is not available”;只用struts时就能够正常调用action,转到result的页面。我是跟着视频教学一起做的,虽然myeclipse版本和struts版本不同,应该不是这个问题吧求各位高手指点