BookCaseQuery.java~3~
上传用户:toby828
上传日期:2015-06-26
资源大小:8558k
文件大小:1k
- package com.action;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionForm;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts.action.ActionForward;
- import com.actionForm.BookCaseForm;
- import org.apache.struts.action.Action;
- import com.core.ConnDB;
- import com.dao.BookCaseDAO;
- public class BookCaseQuery extends Action {
- private BookCaseDAO bookCaseDAO=new BookCaseDAO();
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- //BookCaseForm bookCaseForm = (BookCaseForm) actionForm;
- servletRequest.setAttribute("bookcase",bookCaseDAO.query());
- return actionMapping.findForward("test");
- }
- }