BookCaseAction.java~10~
上传用户: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 BookCaseAction extends Action {
- private BookCaseDAO bookCaseDAO=new BookCaseDAO();
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- //BookCaseForm bookCaseForm = (BookCaseForm) actionForm;
- servletRequest.setAttribute("list",bookCaseDAO.bookCaseDAOQuery());
- return actionMapping.findForward("test");
- }
- }