📄 savesession.java
字号:
package com.xfaccp.bookonline.hib.util;
import java.util.List;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.tagext.BodyTagSupport;
import com.xfaccp.bookonline.hib.dao.CatalogTableDAO;
import com.xfaccp.bookonline.hib.dto.CatalogTable;
import com.xfaccp.bookonline.struts.action.CalatogAction;
public class SaveSession extends BodyTagSupport {
public int doStartTag()
{
CatalogTableDAO dao=new CatalogTableDAO();
List list=dao.findByExample(new CatalogTable());
HttpSession session=this.pageContext.getSession();
session.setAttribute("cataloglist", list);
System.out.println(list.size());
System.out.println("execute taglabel");
return SKIP_BODY;
}
public int doEndTag()
{
return EVAL_PAGE;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -