BookCaseDel.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.dao.BookCaseDAO;
- public class BookCaseDel extends Action {
- BookCaseDAO bookCaseDAO=new BookCaseDAO();
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- BookCaseForm bookCaseForm = (BookCaseForm) actionForm;
- int ret=bookCaseDAO.Delete(bookCaseForm);
- if(ret==0){
- return actionMapping.findForward("error");
- }else{
- return actionMapping.findForward("bookCaseQuery");
- }
- }
- }