📄 mybook.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 + -