博客目录

  • JSP在线招聘系统
    • 实现功能截图
    • 技术点总结:
    • 代码
    • 写在最后

JSP在线招聘系统

本系统是一套用户学生和企业投递简历以及筛选人才的网站,包含常用的招聘网站功能,美观实用。

实现功能截图

用户未登录系统首页:

用户登录成功提示:

用户登录成功:

留言板:

个人管理中心:

资料下载:

就业信息:

技术点总结:

jsp、Servlet
jdk版本:1.7
tomcat: 7.0
数据库:mysql
开发工具:eclipse

项目包结构分类清晰:

代码

model类:
TAdmin.java:

package com.model;/*** TAdmin generated by MyEclipse Persistence Tools*/public class TAdmin implements java.io.Serializable {// Fieldsprivate Integer userId;private String userName;private String userPw;// Constructors/** default constructor */public TAdmin() {}/** full constructor */public TAdmin(String userName, String userPw) {this.userName = userName;this.userPw = userPw;}// Property accessorspublic String getUserName() {return this.userName;}public void setUserName(String userName) {this.userName = userName;}public String getUserPw() {return this.userPw;}public void setUserPw(String userPw) {this.userPw = userPw;}public Integer getUserId(){return userId;}public void setUserId(Integer userId){this.userId = userId;}}

TStu.java:

package com.model;/*** TStu generated by MyEclipse Persistence Tools*/public class TStu implements java.io.Serializable
{private Integer stuId;private String stuXuehao;private String stuRealname;private String stuSex;private String stuAge;private String loginName;private String loginPw;private String del;public String getDel(){return del;}public void setDel(String del){this.del = del;}public String getLoginName(){return loginName;}public void setLoginName(String loginName){this.loginName = loginName;}public String getLoginPw(){return loginPw;}public void setLoginPw(String loginPw){this.loginPw = loginPw;}public String getStuAge(){return stuAge;}public void setStuAge(String stuAge){this.stuAge = stuAge;}public Integer getStuId(){return stuId;}public void setStuId(Integer stuId){this.stuId = stuId;}public String getStuRealname(){return stuRealname;}public void setStuRealname(String stuRealname){this.stuRealname = stuRealname;}public String getStuSex(){return stuSex;}public void setStuSex(String stuSex){this.stuSex = stuSex;}public String getStuXuehao(){return stuXuehao;}public void setStuXuehao(String stuXuehao){this.stuXuehao = stuXuehao;}}

dao层:
TAdminDAO.java:

package com.dao;import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;import com.model.TAdmin;/*** Data access object (DAO) for domain model class TAdmin.* * @see com.model.TAdmin* @author MyEclipse Persistence Tools*/public class TAdminDAO extends HibernateDaoSupport {private static final Log log = LogFactory.getLog(TAdminDAO.class);// property constantspublic static final String USER_NAME = "userName";public static final String USER_PW = "userPw";protected void initDao() {// do nothing}public void save(TAdmin transientInstance) {log.debug("saving TAdmin instance");try {getHibernateTemplate().save(transientInstance);log.debug("save successful");} catch (RuntimeException re) {log.error("save failed", re);throw re;}}public void delete(TAdmin persistentInstance) {log.debug("deleting TAdmin instance");try {getHibernateTemplate().delete(persistentInstance);log.debug("delete successful");} catch (RuntimeException re) {log.error("delete failed", re);throw re;}}public TAdmin findById(java.lang.Integer id) {log.debug("getting TAdmin instance with id: " + id);try {TAdmin instance = (TAdmin) getHibernateTemplate().get("com.model.TAdmin", id);return instance;} catch (RuntimeException re) {log.error("get failed", re);throw re;}}public List findByExample(TAdmin instance) {log.debug("finding TAdmin instance by example");try {List results = getHibernateTemplate().findByExample(instance);log.debug("find by example successful, result size: "+ results.size());return results;} catch (RuntimeException re) {log.error("find by example failed", re);throw re;}}public List findByProperty(String propertyName, Object value) {log.debug("finding TAdmin instance with property: " + propertyName+ ", value: " + value);try {String queryString = "from TAdmin as model where model."+ propertyName + "= ?";return getHibernateTemplate().find(queryString, value);} catch (RuntimeException re) {log.error("find by property name failed", re);throw re;}}public List findByUserName(Object userName) {return findByProperty(USER_NAME, userName);}public List findByUserPw(Object userPw) {return findByProperty(USER_PW, userPw);}public List findAll() {log.debug("finding all TAdmin instances");try {String queryString = "from TAdmin";return getHibernateTemplate().find(queryString);} catch (RuntimeException re) {log.error("find all failed", re);throw re;}}public TAdmin merge(TAdmin detachedInstance) {log.debug("merging TAdmin instance");try {TAdmin result = (TAdmin) getHibernateTemplate().merge(detachedInstance);log.debug("merge successful");return result;} catch (RuntimeException re) {log.error("merge failed", re);throw re;}}public void attachDirty(TAdmin instance) {log.debug("attaching dirty TAdmin instance");try {getHibernateTemplate().saveOrUpdate(instance);log.debug("attach successful");} catch (RuntimeException re) {log.error("attach failed", re);throw re;}}public void attachClean(TAdmin instance) {log.debug("attaching clean TAdmin instance");try {getHibernateTemplate().lock(instance, LockMode.NONE);log.debug("attach successful");} catch (RuntimeException re) {log.error("attach failed", re);throw re;}}public static TAdminDAO getFromApplicationContext(ApplicationContext ctx) {return (TAdminDAO) ctx.getBean("TAdminDAO");}
}

TStuDAO.java:

package com.dao;import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;import com.model.TStu;/*** Data access object (DAO) for domain model class TStu.* * @see com.model.TStu* @author MyEclipse Persistence Tools*/public class TStuDAO extends HibernateDaoSupport
{private static final Log log = LogFactory.getLog(TStuDAO.class);// property constantspublic static final String STU_XUEHAO = "stuXuehao";public static final String STU_REALNAME = "stuRealname";public static final String STU_SEX = "stuSex";public static final String STU_AGE = "stuAge";public static final String STU_CARD = "stuCard";public static final String STU_ZHENGZHIMIANMAO = "stuZhengzhimianmao";public static final String LOGIN_NAME = "loginName";public static final String LOGIN_PW = "loginPw";public static final String DEL = "del";protected void initDao(){// do nothing}public void save(TStu transientInstance){log.debug("saving TStu instance");try{getHibernateTemplate().save(transientInstance);log.debug("save successful");} catch (RuntimeException re){log.error("save failed", re);throw re;}}public void delete(TStu persistentInstance){log.debug("deleting TStu instance");try{getHibernateTemplate().delete(persistentInstance);log.debug("delete successful");} catch (RuntimeException re){log.error("delete failed", re);throw re;}}public TStu findById(java.lang.Integer id){log.debug("getting TStu instance with id: " + id);try{TStu instance = (TStu) getHibernateTemplate().get("com.model.TStu",id);return instance;} catch (RuntimeException re){log.error("get failed", re);throw re;}}public List findByExample(TStu instance){log.debug("finding TStu instance by example");try{List results = getHibernateTemplate().findByExample(instance);log.debug("find by example successful, result size: "+ results.size());return results;} catch (RuntimeException re){log.error("find by example failed", re);throw re;}}public List findByProperty(String propertyName, Object value){log.debug("finding TStu instance with property: " + propertyName+ ", value: " + value);try{String queryString = "from TStu as model where model."+ propertyName + "= ?";return getHibernateTemplate().find(queryString, value);} catch (RuntimeException re){log.error("find by property name failed", re);throw re;}}public List findByStuXuehao(Object stuXuehao){return findByProperty(STU_XUEHAO, stuXuehao);}public List findByStuRealname(Object stuRealname){return findByProperty(STU_REALNAME, stuRealname);}public List findByStuSex(Object stuSex){return findByProperty(STU_SEX, stuSex);}public List findByStuAge(Object stuAge){return findByProperty(STU_AGE, stuAge);}public List findByStuCard(Object stuCard){return findByProperty(STU_CARD, stuCard);}public List findByStuZhengzhimianmao(Object stuZhengzhimianmao){return findByProperty(STU_ZHENGZHIMIANMAO, stuZhengzhimianmao);}public List findByLoginName(Object loginName){return findByProperty(LOGIN_NAME, loginName);}public List findByLoginPw(Object loginPw){return findByProperty(LOGIN_PW, loginPw);}public List findByDel(Object del){return findByProperty(DEL, del);}public List findAll(){log.debug("finding all TStu instances");try{String queryString = "from TStu";return getHibernateTemplate().find(queryString);} catch (RuntimeException re){log.error("find all failed", re);throw re;}}public TStu merge(TStu detachedInstance){log.debug("merging TStu instance");try{TStu result = (TStu) getHibernateTemplate().merge(detachedInstance);log.debug("merge successful");return result;} catch (RuntimeException re){log.error("merge failed", re);throw re;}}public void attachDirty(TStu instance){log.debug("attaching dirty TStu instance");try{getHibernateTemplate().saveOrUpdate(instance);log.debug("attach successful");} catch (RuntimeException re){log.error("attach failed", re);throw re;}}public void attachClean(TStu instance){log.debug("attaching clean TStu instance");try{getHibernateTemplate().lock(instance, LockMode.NONE);log.debug("attach successful");} catch (RuntimeException re){log.error("attach failed", re);throw re;}}public static TStuDAO getFromApplicationContext(ApplicationContext ctx){return (TStuDAO) ctx.getBean("TStuDAO");}
}

action层:
adminAction.java:

package com.action;import java.util.List;
import java.util.Map;import org.apache.struts2.ServletActionContext;import com.dao.TAdminDAO;
import com.model.TAdmin;
import com.opensymphony.xwork2.ActionSupport;public class adminAction extends ActionSupport
{private int userId;private String userName;private String userPw;private String message;private String path;private int index=1;private TAdminDAO adminDAO;public String adminAdd(){TAdmin admin=new TAdmin();admin.setUserName(userName);admin.setUserPw(userPw);adminDAO.save(admin);this.setMessage("操作成功");this.setPath("adminManage.action");return "succeed";}public String adminManage(){List adminList=adminDAO.findAll();Map request=(Map)ServletActionContext.getContext().get("request");request.put("adminList", adminList);return ActionSupport.SUCCESS;}public String adminDel(){adminDAO.delete(adminDAO.findById(userId));this.setMessage("删除成功");this.setPath("adminManage.action");return "succeed";}public TAdminDAO getAdminDAO(){return adminDAO;}public void setAdminDAO(TAdminDAO adminDAO){this.adminDAO = adminDAO;}public String getMessage(){return message;}public int getIndex(){return index;}public void setIndex(int index){this.index = index;}public void setMessage(String message){this.message = message;}public String getPath(){return path;}public void setPath(String path){this.path = path;}public int getUserId(){return userId;}public void setUserId(int userId){this.userId = userId;}public String getUserName(){return userName;}public void setUserName(String userName){this.userName = userName;}public String getUserPw(){return userPw;}public void setUserPw(String userPw){this.userPw = userPw;}}

stuAction.java:

package com.action;import java.util.List;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.apache.struts2.ServletActionContext;import com.dao.TStuDAO;
import com.model.TStu;
import com.opensymphony.xwork2.ActionSupport;public class stuAction extends ActionSupport
{private Integer stuId;private String stuXuehao;private String stuRealname;private String stuSex;private String stuAge;private String loginName;private String loginPw;private String del;private String message;private String path;private TStuDAO stuDAO;public String stuAdd(){TStu stu=new TStu();stu.setStuXuehao(stuXuehao);stu.setStuRealname(stuRealname);stu.setStuSex(stuSex);stu.setStuAge(stuAge);stu.setLoginName(loginName);stu.setLoginPw(loginPw);stu.setDel("no");stuDAO.save(stu);HttpServletRequest request=ServletActionContext.getRequest();request.setAttribute("msg", "注册成功,请登录");return "msg";}public String stuDel(){TStu stu=stuDAO.findById(stuId);stu.setDel("yes");stuDAO.attachDirty(stu);this.setMessage("删除成功");this.setPath("stuMana.action");return "succeed";}public String stuMana(){List stuList=stuDAO.getHibernateTemplate().find("from TStu where del='no'");Map request=(Map)ServletActionContext.getContext().get("request");request.put("stuList", stuList);return ActionSupport.SUCCESS;}public String stuEditByMe(){Map session= ServletActionContext.getContext().getSession();TStu stu=(TStu)session.get("stu");stu.setStuXuehao(stuXuehao);stu.setStuRealname(stuRealname);stu.setStuSex(stuSex);stu.setStuAge(stuAge);stu.setLoginName(loginName);stu.setLoginPw(loginPw);stu.setDel("no");stuDAO.attachDirty(stu);session.put("stu", stu);this.setMessage("操作成功");this.setPath("astu/userinfo/stuinfo.jsp");return "succeed";}public String getDel(){return del;}public void setDel(String del){this.del = del;}public String getLoginName(){return loginName;}public void setLoginName(String loginName){this.loginName = loginName;}public String getLoginPw(){return loginPw;}public void setLoginPw(String loginPw){this.loginPw = loginPw;}public String getMessage(){return message;}public void setMessage(String message){this.message = message;}public String getPath(){return path;}public void setPath(String path){this.path = path;}public String getStuAge(){return stuAge;}public void setStuAge(String stuAge){this.stuAge = stuAge;}public TStuDAO getStuDAO(){return stuDAO;}public void setStuDAO(TStuDAO stuDAO){this.stuDAO = stuDAO;}public Integer getStuId(){return stuId;}public void setStuId(Integer stuId){this.stuId = stuId;}public String getStuRealname(){return stuRealname;}public void setStuRealname(String stuRealname){this.stuRealname = stuRealname;}public String getStuSex(){return stuSex;}public void setStuSex(String stuSex){this.stuSex = stuSex;}public String getStuXuehao(){return stuXuehao;}public void setStuXuehao(String stuXuehao){this.stuXuehao = stuXuehao;}}

写在最后

码代码不容易,需要的同学可以参考学习,全部代码不能都贴出,如果需要可以+博主V交流获取(Code2Life2)
最后,别忘了一键三连哦

Java Jsp+Servlet+mysql实现的在线招聘系统(系统管理员/企业用户/学生 功能:招聘信息、投递简历、筛选简历、面试资料下载、就业信息、就业新闻、留言板等)相关推荐

  1. java+jsp+servlet+mysql【网上预约挂号系统】(源码+论文+PPT+任务书+中期检查)

    系统功能 <1>浏览医院信息. <2>预约查询. <3>预约服务:已登录的用户可以选择适合自己的医生并预约就医时间. <4>管理员模块:对医生以及医生所 ...

  2. Java Jsp+Servlet+mysql实现的图书借阅系统(系统管理员/图书管理员/读者 功能:图书信息管理、图书借阅、我的借阅记录、管理图书、用户管理、反馈)

    博客目录 JSP图书借阅系统 主要功能点 实现功能截图 技术点总结 代码 写在最后 JSP图书借阅系统 随着社会经济的迅速发展和科学技术的全面进步以及计算机事业的飞速发展,以计算机科学与通信技术为基础 ...

  3. Jsp+Servlet+Mysql实现的在线图书商城源码

    今天给大家演示的是一款由jsp+servlet+mysql实现的在线图书商城系统, 主要分为前台.后台管理员功能 前台用户可以浏览查看各类图书信息,可自定义搜索,注册登录后可以将书添加到购物车,购物车 ...

  4. Jsp+Servlet+Mysql实现的在线鲜花商城源码

    今天给大家演示的是一款jsp+servlet+mysql实现的在线鲜花商城系统, 其本质是在线商城,但是鉴于很多同学基础比较薄弱,不会修改,因此修改成了鲜花商城,也附上了基本的修改版权信息和导航条的教 ...

  5. jsp+servlet+mysql实现的在线鲜花商城

    jsp+servlet+mysql实现的在线鲜花商城 JDK:jdk1.8 ida:eclipse 数据库:mysql开发环境: Eclipse ,MYSQL,JDK1.8,Tomcat 8.5 涉及 ...

  6. 基于javaweb+jsp的网上商城系统(java+jsp+servlet+mysql+ajax)

    基于javaweb+jsp的网上商城系统(java+jsp+servlet+mysql+ajax) 一.项目简述(+需求文档+PPT) 功能: 主页显示热销商品:所有商品展示,可进行商品搜索:点 击商 ...

  7. 基于JSP+Servlet+MySQL+的在线购物电子商务商城系统

    商城首页 首页信息 首页信息 登陆 商品列表 订单列表 个人信息 商品管理 添加商品 咨询列表 添加购物车 购物车管理 订单创建 技术描述 开发工具: Idea/Eclipse 数据库: mysql ...

  8. 手把手教你做一个jsp+ssm+mysql实现的在线考试系统之在线考试系统源码+视频开发教程+参考论文+开题报告

    今天给大家演示的是一款由jsp+ssm框架(spring+springMVC+mybatis)+mysql实现的在线考试系统源码和开发教程,本系统配有完整的源码.45讲视频开发教程.数据库文件.项目素 ...

  9. 基于 jsp + servlet + Mysql 实现 网上书店购物系统 (源码)

    文章目录 一.前言 二.相关技术: 三.功能分析: 1.前台: 2.后台: 四.效果展示: 1.登录与注册: 2.前台: 3.后台: 五.后记: 一.前言 该系统是简单的模仿 当当网 书店系统,分为前 ...

最新文章

  1. 使用VS 自带的打包工具,制作winform安装项目
  2. Django框架连接MySQL数据库
  3. java安卓原生影视APP源码 对接苹果cms后台
  4. java当前路径_java获取当前路径的几种方法
  5. SVN使用方法及问题解决
  6. 国际国内资管分仓跟单软件的具体作用
  7. 谷歌浏览器插件安装 音量提升插件Volume Control
  8. 键盘没有NumLock这个键 怎样解锁数字键盘?
  9. 心形函数的正确打开方式(Unity3D Shader)
  10. [转] 一篇不错的Perl-LWP文档
  11. 等额本金计算公式解析
  12. python中小数点后取2位(四舍五入)以及取2位(四舍五不入)的方法总结
  13. 恒大威武!关于SQL的一些基础知识整理回顾
  14. 稳坐全球第一的小米手环,爆款背后的“护城河”是如何造就的?
  15. 【程序员入门记录】ThinkPad E470改造记录——换屏
  16. nginx 配置HTTPS证书-阿里云服务器
  17. 【软件推荐】 AVAST! 全功能杀毒软件
  18. android 图片轮播带缩略图,超酷响应式带缩略图的jQuery轮播图插件
  19. draggable 中文文档
  20. 遍历json 对象的属性并且动态添加属性

热门文章

  1. 能源系统建模:python读取GCAM的xml数据文件
  2. 如何理解Q、K、V,Self-attention + Multi-head Self-attention
  3. 网络黑客攻防学习平台之基础关第七题
  4. 数据分析指标和术语概述
  5. mysql标签_mysql 标签
  6. Mybatis核心源码赏析(五)
  7. HTML页面悬浮球,html滑动仿悬浮球菜单效果的实现
  8. 吴恩达《Machine Learning》精炼笔记 8:聚类 KMeans 及其 Python实现
  9. [转]Magento on Steroids – Best practice for highest performance
  10. libreoffice + jodconverter + Springboot 整合使用将Word转PDF