资源简介

Java 语言编写,使用 MySQL 数据库,基于 Struts 2 和 Hibernate 框架,实现了基础的人力资源管理系统的功能,有人员管理,资金管理,奖惩管理,活动管理,考勤管理等功能,可以为鉴。

资源截图

代码片段和文件信息

/*
 * Created on 2006-1-22
 *
 */
package me.heli.hrs.action;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

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

/**
 * @author HeLi
 *  
 */
public class ActionServlet extends org.apache.struts.action.ActionServlet {
    protected void process(HttpServletRequest httpservletrequestHttpServletResponse httpservletresponse) throws IOExceptionServletException {
        setCharset(httpservletrequest);
        super.process(httpservletrequest httpservletresponse);
    }

    private void setCharset(HttpServletRequest httpservletrequest) {
        String s = getServletConfig().getInitParameter(“charset“);
        if (s == null || s.length() == 0) {
            s=“GBK“;
        }
        try {
            httpservletrequest.setCharacterEncoding(s);
        } catch (UnsupportedEncodingException unsupportedencodingexception) {
            log(“set character encoding error“ unsupportedencodingexception);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         841  2016-01-16 15:39  .classpath
     文件        1037  2016-01-16 15:39  .project
     目录           0  2016-01-16 17:35  .settings\
     文件         567  2016-01-16 15:39  .settings\.jsdtscope
     文件         364  2016-01-16 15:39  .settings\org.eclipse.jdt.core.prefs
     文件         464  2016-01-16 15:39  .settings\org.eclipse.wst.common.component
     文件         345  2016-01-16 15:39  .settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-01-16 15:39  .settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-01-16 15:39  .settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2016-01-16 17:35  build\
     目录           0  2016-01-16 17:35  build\classes\
     文件        1322  2016-01-16 16:37  build\classes\hibernate.cfg.xml
     目录           0  2016-01-16 17:35  build\classes\me\
     目录           0  2016-01-16 17:35  build\classes\me\heli\
     目录           0  2016-01-16 17:35  build\classes\me\heli\hrs\
     目录           0  2016-01-16 17:35  build\classes\me\heli\hrs\action\
     目录           0  2016-01-16 17:35  build\classes\me\heli\hrs\actionform\
     文件        5238  2016-01-16 16:57  build\classes\me\heli\hrs\actionform\EducateForm.class
     文件        5793  2016-01-16 16:55  build\classes\me\heli\hrs\actionform\JobForm.class
     文件        4885  2016-01-16 16:57  build\classes\me\heli\hrs\actionform\StipendForm.class
     文件        4096  2016-01-16 16:55  build\classes\me\heli\hrs\actionform\UsersForm.class
     文件        1575  2016-01-16 16:55  build\classes\me\heli\hrs\action\ActionServlet.class
     文件        3850  2016-01-16 16:55  build\classes\me\heli\hrs\action\EducateAction.class
     文件        3713  2016-01-16 16:55  build\classes\me\heli\hrs\action\JobAction.class
     文件        3647  2016-01-16 16:55  build\classes\me\heli\hrs\action\StipendAction.class
     文件        4207  2016-01-16 16:55  build\classes\me\heli\hrs\action\UsersAction.class
     目录           0  2016-01-16 17:35  build\classes\me\heli\hrs\entity\
     文件        4421  2016-01-16 16:36  build\classes\me\heli\hrs\entity\Educate.class
     文件        1222  2016-01-16 16:52  build\classes\me\heli\hrs\entity\Educate.hbm.xml
     文件        5035  2016-01-16 16:36  build\classes\me\heli\hrs\entity\Job.class
     文件        1341  2016-01-16 16:52  build\classes\me\heli\hrs\entity\Job.hbm.xml
............此处省略119个文件信息

评论

共有 条评论