package com.struts.action;
import java.util.ArrayList;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.struts.bean.Book;
public classBookAction extends ActionSupport
{
private static final long serialVersionUID = 6649158059085272240L;

public static List<Book> bookList = new ArrayList<Book>();
private String title;
private Book book;
public String initAdd()
{
return "initAdd";
}
public String add()
{
bookList.add(book);
title = "<br/><br/>添加书籍成功<br/><br/>";
return "success";
}
public String list()
{
return "list";
}
public String clear()
{
bookList.clear();
title =  "<br/><br/>清空所有书籍成功<br/><br/>";
return "list";
}
public List<Book> getBookList()
{
return bookList;
}}package com.struts.bean;import java.sql.Date;public class Book 
{
private String name;
private String author;
private Date publishedDate;
}listBook.jsp
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>图书列表</title>
</head>
<body>
<a href="<s:url action="initAddBook"/>">添加图书</a>
<a href="<s:url action="listBook"/>">书籍列表</a>
<a href="<s:url action="clearBook"/>">清空书籍列表</a>
<table>
<tr>
<th>书名</th>
<th>作者</th>
<th>出版日期</th>
</tr>
<s:iterator id="book" value="bookList">
<tr>
<td>${book.name}</td>
<td>${book.author}</td>
<td>${book.publishedDate}</td>
</tr>
</s:iterator>
</table>
</body>initAddBook.jsp
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>add</title></head>
<body>
<center>
<a href="<s:url action="initAddBook"/>">添加图书</a>
<a href="<s:url action="listBook"/>">书籍列表</a>
<a href="<s:url action="clearBook"/>">清空书籍列表</a>
<s:form action="addBook">
<s:label value="添加书籍"></s:label>
<s:textfield name="book.name" label="书名" required="true" requiredposition="left"></s:textfield>
<s:textfield name="book.author" label="作者" required="true" requiredposition="left"></s:textfield>
<s:textfield name="book.publishedDate" label="出版社" required="true" requiredposition="left"></s:textfield>
<s:submit value="添加"></s:submit>
</s:form>
</center></body>
</html>
struts.xml<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.devMode" value="true" />
<package name="myPackge" extends="struts-default" >
<action name="*Book" class="com.struts.action.BookAction" method="{1}">
<result>/successBook.jsp</result>
<result name="{1}">/{1}Book.jsp</result>
<result name="input">/initAddBook.jsp</result>
<result name="list">listBook.jsp</result>
</action>
</package>
</struts>当我在initAddBook.jsp中添加了信息  在listBook.jsp中找不到 求解释