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

📄 mybook.java

📁 STRUTS2的入门 教程
💻 JAVA
字号:
package action;

import java.util.List;

import org.apache.struts2.ServletActionContext;

import com.vo.LendBook;
import com.dao.LendDAO;
import com.opensymphony.xwork2.ActionSupport;
/**
 * 
 * USER书籍action
 *
 */
public class Mybook extends ActionSupport {
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		int userid = Integer.parseInt(ServletActionContext.getRequest().getSession().getAttribute("userid").toString());
		list = new LendDAO().noReturn(userid);
		return SUCCESS;
	}

	private List<LendBook> list;

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

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

⌨️ 快捷键说明

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