• 大小: 25.32MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-21
  • 语言: 其他
  • 标签: ssh  jsp  

资源简介

通过ssh架构了一个毕业设计选题管理系统 分为 管理员 教师 学生 三种角色 实现了教师上传课题 学生选择课题或自己课题提交审核 提交阶段文档 指导老师给予指导等等

资源截图

代码片段和文件信息

package cn.edu.management.action;

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import cn.edu.management.comm.ApplyTeacherComparator;
import cn.edu.management.comm.DateConventer;
import cn.edu.management.comm.FileManage;
import cn.edu.management.comm.Page;
import cn.edu.management.comm.VOconver;
import cn.edu.management.service.ManagerService;
import cn.edu.management.service.UserService;
import cn.edu.management.vo.showVO.Ems_systemset;
import cn.edu.management.vo.showVO.StudentVO;
import cn.edu.management.vo.showVO.showApplyModifyLogVO;
import cn.edu.management.vo.showVO.showTeacher_VO;
import cn.edu.management.vo.voImpl.ApplyModifyLogVO;
import cn.edu.management.vo.voImpl.ClassTypeVO;
import cn.edu.management.vo.voImpl.EMS_Systemset;
import cn.edu.management.vo.voImpl.Ems_Manager_VO;
import cn.edu.management.vo.voImpl.Ems_Student_VO;
import cn.edu.management.vo.voImpl.Ems_Teacher_VO;
import cn.edu.management.vo.voImpl.ProfessionVO;
import cn.edu.management.vo.voImpl.WorkerTypeVO;

import com.opensymphony.xwork2.ActionSupport;


@Component
@Scope(“prototype“)
public class ManagerAction extends ActionSupport {

private ManagerService managerService;
private UserService userService;

@Resource
public void setManagerService(ManagerService managerService) {
this.managerService = managerService;
}
@Resource
public void setUserService(UserService userService) {
this.userService = userService;
}

/*方便页面获取迭代显示*/
private List managerList ;//管理员
private List teacherList ;//教师
private List studentList ;//学生
private List   professionList;//专业
private List   workertypeList;//作品类型
private List   classtypeList;//课程类型
private List applyModifyList;//申请信息记录表
private List  showTeacherList;//方便界面显示老师



/**
 *  局部刷新验证
 * @return
 * @throws IOException 
 */
public void checkAccount() throws IOException {
HttpServletRequest request = ServletActionContext.getRequest();
String account = request.getParameter(“account“);
HttpServletResponse response = ServletActionContext.getResponse();
try {

response.setCharacterEncoding(“utf-8“);
if(account.equals(““))
response.getWriter().print(“{\“result\“:\“space\“}“);
else
{
boolean flag = this.managerService.checkAccountIsExist(account);

if(flag)
{

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-05-09 11:03  EducationalManagementSystem\
     文件        5557  2013-04-22 20:02  EducationalManagementSystem\.classpath
     目录           0  2012-05-09 11:03  EducationalManagementSystem\.myeclipse\
     文件         354  2013-04-16 13:55  EducationalManagementSystem\.mymetadata
     文件        1433  2013-04-16 13:55  EducationalManagementSystem\.project
     目录           0  2012-05-09 11:03  EducationalManagementSystem\.settings\
     文件         500  2012-03-17 10:55  EducationalManagementSystem\.settings\.jsdtscope
     文件         208  2013-04-16 13:48  EducationalManagementSystem\.settings\org.eclipse.core.resources.prefs
     文件         330  2012-03-17 10:55  EducationalManagementSystem\.settings\org.eclipse.jdt.core.prefs
     文件          49  2012-03-17 10:55  EducationalManagementSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-03-17 10:55  EducationalManagementSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2013-04-15 15:17  EducationalManagementSystem\src\
     目录           0  2012-05-09 11:03  EducationalManagementSystem\src\cn\
     目录           0  2012-05-09 11:03  EducationalManagementSystem\src\cn\edu\
     目录           0  2012-05-09 11:03  EducationalManagementSystem\src\cn\edu\management\
     目录           0  2012-05-09 11:03  EducationalManagementSystem\src\cn\edu\management\action\
     文件       50212  2013-05-11 19:53  EducationalManagementSystem\src\cn\edu\management\action\ManagerAction.java
     文件       38181  2013-05-11 19:53  EducationalManagementSystem\src\cn\edu\management\action\StudentAction.java
     文件       55383  2013-05-11 19:53  EducationalManagementSystem\src\cn\edu\management\action\TeacherAction.java
     文件        3859  2013-04-17 14:18  EducationalManagementSystem\src\cn\edu\management\action\UserAction.java
     目录           0  2012-05-09 11:03  EducationalManagementSystem\src\cn\edu\management\comm\
     文件         666  2013-04-17 14:18  EducationalManagementSystem\src\cn\edu\management\comm\ApplyTeacherComparator.java
     文件         546  2013-04-17 14:20  EducationalManagementSystem\src\cn\edu\management\comm\ClassTypeVOComparator.java
     文件        1321  2013-04-17 14:21  EducationalManagementSystem\src\cn\edu\management\comm\Comm.java
     文件        4245  2013-04-17 14:22  EducationalManagementSystem\src\cn\edu\management\comm\DateConventer.java
     文件         660  2013-04-17 14:22  EducationalManagementSystem\src\cn\edu\management\comm\disAuditGraduationComparator.java
     文件         666  2013-04-17 14:22  EducationalManagementSystem\src\cn\edu\management\comm\disAuditGraduationResultComparator.java
     文件        2589  2013-04-17 14:23  EducationalManagementSystem\src\cn\edu\management\comm\FileManage.java
     文件         557  2013-04-17 14:23  EducationalManagementSystem\src\cn\edu\management\comm\ManagerComparator.java
     文件        1186  2013-04-17 14:24  EducationalManagementSystem\src\cn\edu\management\comm\Page.java
     文件         552  2013-04-17 14:24  EducationalManagementSystem\src\cn\edu\management\comm\ProfessionVOComparator.java
............此处省略734个文件信息

评论

共有 条评论