• 大小: 10.99MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-05
  • 语言: 其他
  • 标签: jsp  

资源简介

图书管理系统借书还书等操作图书管理系统借书还书等操作图书管理系统借书还书等操作

资源截图

代码片段和文件信息

package com.nhu.library.Action;
import com.nhu.library.DAO.AddBookTypesDAO;
import com.nhu.library.DAO.BookShelfDAO;
import com.opensymphony.xwork2.ActionSupport;
import java.io.PrintStream;
import java.util.List;

public class AddBookTypeAction extends ActionSupport
{

    private String booktypename;
    private int canborowdays;
    private String booktypeid;
    private List booktypelist;

    public AddBookTypeAction()
    {
    }

    public List getBooktypelist()
    {
        return booktypelist;
    }

    public void setBooktypelist(List booktypelist)
    {
        this.booktypelist = booktypelist;
    }

    public String getBooktypename()
    {
        return booktypename;
    }

    public void setBooktypename(String booktypename)
    {
        this.booktypename = booktypename;
    }

    public int getCanborowdays()
    {
        return canborowdays;
    }

    public void setCanborowdays(int canborowdays)
    {
        this.canborowdays = canborowdays;
    }

    public String getBooktypeid()
    {
        return booktypeid;
    }

    public void setBooktypeid(String booktypeid)
    {
        this.booktypeid = booktypeid;
    }

    public String execute()
        throws Exception
    {
        String params[] = {
            booktypename (new Integer(canborowdays)).toString() booktypeid
        };
        System.out.println(params[0]);
        boolean flag = AddBookTypesDAO.addBookType(params);
        if(flag)
        {
            return “success“;
        } else
        {
            return “fail“;
        }
    }

    public String getAlltypes()
        throws Exception
    {
        BookShelfDAO dao = new BookShelfDAO();
        List list = dao.getAllShelfs();
        setBooktypelist(list);
        return “success“;
    }

    public void validate()
    {
        BookShelfDAO dao = new BookShelfDAO();
        try
        {
            List list = dao.getAllShelfs();
            setBooktypelist(list);
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     983797  2006-05-26 11:02  JAVA反编译+图书\JAVA反编译\JAVA反编译\YingJAD.EXE

     文件       2352  2016-11-09 18:37  JAVA反编译+图书\tushu\.classpath

     文件        288  2016-11-09 18:36  JAVA反编译+图书\tushu\.mymetadata

     文件       1748  2016-11-09 18:37  JAVA反编译+图书\tushu\.project

     文件        500  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\.jsdtscope

     文件        395  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\org.eclipse.jdt.core.prefs

     文件        453  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\org.eclipse.wst.common.component

     文件        252  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-11-09 18:37  JAVA反编译+图书\tushu\.settings\org.eclipse.wst.jsdt.ui.superType.name

    .......      1241  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddBookTypeAction-addbooktype-validation.xml

    .......      2565  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddBookTypeAction.class

    .......      2153  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddBookTypeAction.java

    .......        98  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddBookTypeAction.properties

    .......       717  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddmanagerAction-validation.xml

    .......      1336  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddmanagerAction.class

    .......      1169  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddmanagerAction.java

    .......      1942  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddReaderAction-validation.xml

    .......      3733  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddReaderAction.class

    .......      3525  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\AddReaderAction.java

    .......      2769  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\BorowAction.class

    .......      2261  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\BorowAction.java

    .......      3966  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindBookAction.class

    .......      4008  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindBookAction.java

    .......      4907  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindReaderAction.class

    .......      5315  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindReaderAction.java

    .......      1361  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindReaderTypeAction.class

    .......       879  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\FindReaderTypeAction.java

    .......      2450  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\GetCommonsInfoAction.class

    .......      1640  2011-12-02 14:51  JAVA反编译+图书\tushu\src\com\nhu\library\Action\GetCommonsInfoAction.java

............此处省略323个文件信息

评论

共有 条评论