⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookhistory.java

📁 Eclips3.2 + mysql5.5 用Struts2编写的图书管理系统
💻 JAVA
字号:
package action;

import java.util.List;

import org.apache.struts2.ServletActionContext;

import com.dao.LendDAO;
import com.opensymphony.xwork2.ActionSupport;
import com.vo.History;

/**
 * 
 * 借书历史action
 *
 */
public class BookHistory extends ActionSupport {
	private List<History> list;

	public List<History> getList() {
		return list;
	}

	public void setList(List<History> list) {
		this.list = list;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		int userid = Integer.parseInt(ServletActionContext.getRequest().getSession().getAttribute("userid").toString());
		list = new LendDAO().getHistory(userid);
		return SUCCESS;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -