• 大小: 28.35MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-28
  • 语言: Java
  • 标签: ssh  java  管理系统  

资源简介

ssh车辆管理项目

资源截图

代码片段和文件信息

package com.lovo.car.action;

import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import org.apache.struts.upload.FormFile;
import org.codehaus.jackson.map.objectMapper;
import org.springframework.beans.BeanUtils; 
import com.lovo.car.Form.CarForm;
import com.lovo.car.bean.CarBean;
import com.lovo.car.bean.CarManBean;
import com.lovo.car.bean.CutPageBean;
import com.lovo.car.service.ICarManService;
import com.lovo.car.service.ICarService;

public class CarAction extends  DispatchAction{
private ICarService service;
private ICarManService manService;
public ActionForward findByItem(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {  
 CarForm cf=(CarForm)form;
 CarBean car=new CarBean();   
 BeanUtils.copyProperties(cf car);   
 CutPageBean findcarall=service.findByItem(cf.getPageNO()carcf.getCarmanid());  
 request.setAttribute(“findcarall“ findcarall);
 request.setAttribute(“pageNO“ cf.getPageNO());
 request.getSession().setAttribute(“carmanid“ cf.getCarmanid()); 
 return mapping.findForward(“index“);
 
}  
public ActionForward findAllCarMan(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception { 
 List list=manService.findAll();
 request.getSession().setAttribute(“carman“ list);
return null;
}

public ActionForward findById(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {
CarForm cf=(CarForm)form;
CarBean bean=service.findById(cf.getId());
request.setAttribute(“carbean“ bean);
return mapping.findForward(“byid“);
}
public ActionForward find(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {
CarForm cf=(CarForm)form;
CarBean bean=service.findById(cf.getId());
request.setAttribute(“carbean“ bean);
return mapping.findForward(“update“);

public ActionForward update(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception { 
CarForm cf=(CarForm)form;
System.out.println(cf.getCartone()+“ssssss“+cf.getCarcolor()+“s1111“+cf.getId());
service.update(cf.getId() cf.getCartone()cf.getCarcolor());
return mapping.findForward(“index“);
}
 
public ActionForward del(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception { 
CarForm cf=(CarForm)form;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        529  2013-11-13 15:03  CarManger\.classpath

     文件        300  2013-12-05 14:29  CarManger\.mymetadata

     文件       1752  2013-11-13 15:04  CarManger\.project

     文件        500  2013-11-13 15:03  CarManger\.settings\.jsdtscope

     文件        364  2013-11-13 15:03  CarManger\.settings\org.eclipse.jdt.core.prefs

     文件        465  2013-11-13 15:03  CarManger\.settings\org.eclipse.wst.common.component

     文件        252  2013-11-13 15:03  CarManger\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-11-13 15:03  CarManger\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-11-13 15:03  CarManger\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2629  2013-12-04 14:14  CarManger\src\applicationContext_action.xml

     文件       1876  2013-11-29 15:21  CarManger\src\applicationContext_base.xml

     文件       2443  2013-12-04 14:12  CarManger\src\applicationContext_service.xml

     文件       4983  2013-12-03 14:02  CarManger\src\com\lovo\car\action\CarAction.java

     文件       3057  2013-11-28 10:08  CarManger\src\com\lovo\car\action\CarConveyAction.java

     文件       4206  2013-11-27 18:52  CarManger\src\com\lovo\car\action\CarManAction.java

     文件       3167  2013-11-27 10:51  CarManger\src\com\lovo\car\action\CarMoneyAction.java

     文件        940  2013-12-04 14:24  CarManger\src\com\lovo\car\action\ItemAction.java

     文件       1402  2013-12-04 13:04  CarManger\src\com\lovo\car\action\MouledAction.java

     文件       3654  2013-12-03 13:26  CarManger\src\com\lovo\car\action\RoleAction.java

     文件       4928  2013-12-03 15:00  CarManger\src\com\lovo\car\action\UserAction.java

     文件       4448  2013-11-28 09:30  CarManger\src\com\lovo\car\bean\CarBean.java

     文件       2306  2013-11-27 11:40  CarManger\src\com\lovo\car\bean\CarConvey.java

     文件       3172  2013-11-26 09:45  CarManger\src\com\lovo\car\bean\CarManBean.java

     文件       3918  2013-11-27 10:13  CarManger\src\com\lovo\car\bean\CarMoneyManger.java

     文件        671  2013-11-21 09:07  CarManger\src\com\lovo\car\bean\CutPageBean.java

     文件       1440  2013-12-05 14:14  CarManger\src\com\lovo\car\bean\ItemBean.java

     文件       1172  2013-12-04 15:05  CarManger\src\com\lovo\car\bean\MouledBean.java

     文件       2158  2013-12-03 13:47  CarManger\src\com\lovo\car\bean\RoleBean.java

     文件       2897  2013-12-05 14:18  CarManger\src\com\lovo\car\bean\UserBean.java

     文件        809  2013-11-21 14:30  CarManger\src\com\lovo\car\charfilter\CharFilter.java

............此处省略254个文件信息

评论

共有 条评论