• 大小: 981KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: 其他
  • 标签:

资源简介

该系统主要是针对大学生毕业就业监管,回访学生的就业情况以及更好的帮助学校把控就业。

资源截图

代码片段和文件信息

package com.sanqing.action;

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

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.hibernate.HibernateException;

import com.sanqing.dao.EducateDao;
import com.sanqing.po.Educate;
/**
 * @author BWeiMing
 *
 */
public class EducateAction extends Action {
    private EducateDao dao=new EducateDao();
    public ActionForward execute(ActionMapping mapping ActionForm form
            HttpServletRequest request HttpServletResponse response) throws Exception {

        String action =request.getParameter(“action“);
        System.out.println(“\nEducateAction*********************action=“+action);
        if(action==null||““.equals(action)){
            return mapping.findForward(“error“);
        }else if(“listeducate“.equals(action)){
            return listEducate(mappingformrequestresponse);
        }else if(“addeducate“.equals(action)){
            return addEducate(mappingformrequestresponse);
        }else if(“deleteeducate“.equals(action)){
            return deleteEducate(mappingformrequestresponse);
        }else if(“detaileducate“.equals(action)){
            return detailEducate(mappingformrequestresponse);
        }else if(“updateeducate“.equals(action)){
            return updateEducate(mappingformrequestresponse);
        }
        return mapping.findForward(“error“);
    }
    /**
     * @param mapping
     * @param form
     * @param request
     * @param response
     * @return
     * @throws HibernateException
     */
    private ActionForward updateEducate(ActionMapping mapping ActionForm form HttpServletRequest request HttpServletResponse response) throws HibernateException {
        EducateForm educateForm=(EducateForm)form;
        Educate e=educateForm.populate();
        dao.updateEducate(e);
        return mapping.findForward(“success“);
    }
    /**
     * @param mapping
     * @param form
     * @param request
     * @param response
     * @return
     * @throws HibernateException
     */
    private ActionForward detailEducate(ActionMapping mapping ActionForm form HttpServletRequest request HttpServletResponse response) throws HibernateException {
        Long id=new Long(request.getParameter(“id“));
        Educate e = dao.loadEducate(id.longValue());
        System.out.println(e.getName());
        request.setAttribute(“educate“e);
        return mapping.findForward(“success“);
    }
    /**
     * @param mapping
     * @param form
     * @param request
     * @param response
     * @return
     * @throws HibernateException
     */
    private ActionForward deleteEducate(ActionMapping mapping ActionForm form HttpServletRequest request HttpServletResponse response) throws HibernateException {
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-16 08:45  JavaPrj_5\
     文件        2203  2017-03-27 19:49  JavaPrj_5\.classpath
     目录           0  2017-04-16 08:45  JavaPrj_5\.myeclipse\
     文件         508  2009-10-21 09:24  JavaPrj_5\.myhibernatedata
     文件         300  2014-03-24 19:58  JavaPrj_5\.mymetadata
     文件         258  2009-10-21 09:48  JavaPrj_5\.mystrutsdata
     文件        1904  2017-03-27 19:49  JavaPrj_5\.project
     目录           0  2017-04-16 08:45  JavaPrj_5\.settings\
     文件         522  2017-03-27 19:49  JavaPrj_5\.settings\.jsdtscope
     文件         524  2017-03-27 19:49  JavaPrj_5\.settings\com.genuitec.eclipse.migration.prefs
     文件         275  2017-03-27 19:52  JavaPrj_5\.settings\com.genuitec.runtime.libraries.xml
     文件         364  2017-03-27 19:49  JavaPrj_5\.settings\org.eclipse.jdt.core.prefs
     文件         627  2017-03-27 19:49  JavaPrj_5\.settings\org.eclipse.wst.common.component
     文件         512  2017-03-27 19:49  JavaPrj_5\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-03-27 19:49  JavaPrj_5\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-03-27 19:49  JavaPrj_5\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\Js\
     文件        6732  2009-10-21 16:15  JavaPrj_5\WebRoot\Js\js.js
     文件        2588  2009-10-21 11:19  JavaPrj_5\WebRoot\Js\typem.js
     文件        1185  2009-10-21 11:19  JavaPrj_5\WebRoot\Js\xiangmu.js
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\meta-INF\
     文件          39  2009-10-21 09:20  JavaPrj_5\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\
     文件       13954  2009-10-26 15:12  JavaPrj_5\WebRoot\WEB-INF\.struts-config.mex
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\classes\
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\classes\meta-INF\
     文件          25  2017-03-27 19:49  JavaPrj_5\WebRoot\WEB-INF\classes\meta-INF\MANIFEST.MF
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\classes\com\
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\classes\com\sanqing\
     目录           0  2017-04-16 08:45  JavaPrj_5\WebRoot\WEB-INF\classes\com\sanqing\action\
............此处省略186个文件信息

评论

共有 条评论

相关资源