BookCaseModify.java~4~
上传用户: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 BookCaseModify extends Action {
- private BookCaseDAO bookCaseDAO=new BookCaseDAO();
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- BookCaseForm bookCaseForm = (BookCaseForm) actionForm;
- bookCaseForm.setName(servletRequest.getParameter("name"));
- int ret=bookCaseDAO.Update(bookCaseForm);
- if (ret==0){
- }else{
- }
- return actionMapping.findForward("bookCaseModify");
- }
- }