资源简介

本毕业设计是2015年6月作者自己写的哦,比较适合大四狗,你懂得!下载后可以直接运行,对了数据库采用的是mysql 后台采用的是SSH框架搭建的(哈哈,够经典吧)

资源截图

代码片段和文件信息

package com.myth.action;
import java.lang.reflect.ParameterizedType;

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

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.util.ServletContextAware;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/*
 * 一些公共的代码,
 */
public class baseAction extends ActionSupport implements ModelDrivenServletRequestAwareServletContextAware{
//定义一些返回结果
protected static final String LIST=“list“;
protected static final String ADDUI=“addUI“;
protected static final String UPDATEUI=“updateUI“;
protected static final String TOLIST=“toList“;
protected static final String LOGINUI=“loginUI“;
protected static final String REGISTUI=“registUI“;
protected static String list=LIST;
protected static String addUI=ADDUI;
protected static String updateUI=UPDATEUI;
protected static String toList=TOLIST;
protected static String loginUI=LOGINUI;
protected static String registUI=REGISTUI;
protected T entity;
protected HttpServletRequest request;
protected ServletContext servletContext;
//@Resource
//protected CostService costServiceImp;
//---------------分页时需要用到的当前页属性
protected String currentPage = “1“;
public String getCurrentPage() {
return currentPage;
}
public void setCurrentPage(String currentPage) {
this.currentPage = currentPage;
}
//---------------分页时需要用到的当前页属性

private Class clazz;
public void setServletContext(ServletContext servletContext) {
this.servletContext=servletContext;
}
public void setServletRequest(HttpServletRequest request) {
this.request = request;
}
public baseAction(){
ParameterizedType type=(ParameterizedType) this.getClass().getGenericSuperclass();
clazz=(Class) type.getActualTypeArguments()[0];
try {
entity = (T) clazz.newInstance();
} catch (Exception e) {
e.printStackTrace();

}
public T getModel() {
return this.entity;
}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-03-16 11:23  EmploymentManagementSystem\
     文件        3097  2015-02-07 13:27  EmploymentManagementSystem\.classpath
     文件         503  2015-03-06 14:00  EmploymentManagementSystem\.myhibernatedata
     文件         330  2015-02-09 23:03  EmploymentManagementSystem\.mymetadata
     文件        2179  2015-03-16 11:23  EmploymentManagementSystem\.project
     目录           0  2015-03-16 11:23  EmploymentManagementSystem\.settings\
     文件         500  2015-02-04 11:29  EmploymentManagementSystem\.settings\.jsdtscope
     文件         172  2015-02-04 11:29  EmploymentManagementSystem\.settings\com.genuitec.eclipse.core.prefs
     文件        1009  2015-02-09 23:03  EmploymentManagementSystem\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         145  2015-02-28 14:12  EmploymentManagementSystem\.settings\org.eclipse.core.resources.prefs
     文件         364  2015-02-04 11:29  EmploymentManagementSystem\.settings\org.eclipse.jdt.core.prefs
     文件         559  2015-03-16 11:37  EmploymentManagementSystem\.settings\org.eclipse.wst.common.component
     文件         252  2015-02-04 11:29  EmploymentManagementSystem\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-02-04 11:29  EmploymentManagementSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-02-04 11:29  EmploymentManagementSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件         474  2015-02-07 13:33  EmploymentManagementSystem\.springBeans
     目录           0  2015-04-18 18:22  EmploymentManagementSystem\WebRoot\
     目录           0  2015-03-16 11:23  EmploymentManagementSystem\WebRoot\meta-INF\
     文件          36  2015-02-04 11:29  EmploymentManagementSystem\WebRoot\meta-INF\MANIFEST.MF
     文件        1660  2015-04-18 19:44  EmploymentManagementSystem\WebRoot\NewFile.html
     目录           0  2015-03-16 11:23  EmploymentManagementSystem\WebRoot\WEB-INF\
     目录           0  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\
     目录           0  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\
     目录           0  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\
     目录           0  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\
     文件        2731  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\baseAction.class
     文件        2656  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\CompanyAction.class
     文件        3157  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\LoginuserAction.class
     文件        1567  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\NationAction.class
     文件        2353  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\NoticeAction.class
     文件        1421  2015-05-29 15:00  EmploymentManagementSystem\WebRoot\WEB-INF\classes\com\myth\action\PermissionAction.class
............此处省略695个文件信息

评论

共有 条评论