• 大小: 10.47MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-12
  • 语言: Java
  • 标签: java  

资源简介

完全可以运行,只是数据库丢了,因此需要自己创建,就三个表。基本功能都有。这个是我的毕设。

资源截图

代码片段和文件信息

package com.zrm.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.zrm.model.Subject;
import com.zrm.service.SubjectService;
import com.zrm.service.SubjectServiceImpl;

/*
 * 获得随机试题
 */
public class GetRandomSubject extends ActionSupport{
private SubjectService subjectService = new SubjectServiceImpl();
public String execute() throws Exception {
List subjects = subjectService.randomFindSubject(20);//获得试题记录
HttpServletRequest request = ServletActionContext.getRequest();
request.setAttribute(“subjects“ subjects);
return SUCCESS;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        598  2016-06-21 17:22  OnlineExam\.classpath

     文件       1193  2016-06-02 08:52  OnlineExam\.project

     文件        586  2016-05-06 10:08  OnlineExam\.settings\.jsdtscope

     文件        364  2016-05-06 10:08  OnlineExam\.settings\org.eclipse.jdt.core.prefs

     文件        489  2016-06-02 08:52  OnlineExam\.settings\org.eclipse.wst.common.component

     文件        358  2016-06-21 17:22  OnlineExam\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-05-06 10:08  OnlineExam\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-05-06 10:08  OnlineExam\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        131  2016-05-06 10:08  OnlineExam\.tern-project

     文件        742  2016-05-19 17:42  OnlineExam\src\com\zrm\action\GetRandomSubject.java

     文件       1841  2016-05-10 10:36  OnlineExam\src\com\zrm\action\LikeQuerySubjectAction.java

     文件       1833  2016-05-10 10:37  OnlineExam\src\com\zrm\action\LoginAction.java

     文件        883  2016-05-10 09:48  OnlineExam\src\com\zrm\action\QueryStudentByClass.java

     文件        919  2016-05-10 09:48  OnlineExam\src\com\zrm\action\QueryStudentByName.java

     文件       1238  2016-05-10 10:38  OnlineExam\src\com\zrm\action\QuerySubjectAction.java

     文件       1148  2016-05-10 10:39  OnlineExam\src\com\zrm\action\ShowSubjectAnswer.java

     文件       1593  2016-05-13 16:03  OnlineExam\src\com\zrm\action\StuRegisterAction.java

     文件       2551  2016-05-13 17:31  OnlineExam\src\com\zrm\action\SubjectAddAction.java

     文件        559  2016-05-10 09:50  OnlineExam\src\com\zrm\action\SubjectDeleteAction.java

     文件        778  2016-05-10 10:40  OnlineExam\src\com\zrm\action\SubjectParticularAction.java

     文件       2534  2016-05-10 10:40  OnlineExam\src\com\zrm\action\SubjectUpdateAction.java

     文件        783  2016-05-10 10:41  OnlineExam\src\com\zrm\action\SubjectUpdateBefore.java

     文件       1871  2016-05-10 10:41  OnlineExam\src\com\zrm\action\SubmitExamAction.java

     文件        513  2016-05-12 11:39  OnlineExam\src\com\zrm\dao\StudentDAO.java

     文件       2482  2016-05-12 13:12  OnlineExam\src\com\zrm\dao\StudentDAOImpl.java

     文件        960  2016-05-13 15:19  OnlineExam\src\com\zrm\dao\SubjectDAO.java

     文件       5065  2016-05-13 15:19  OnlineExam\src\com\zrm\dao\SubjectDAOImpl.java

     文件        180  2016-06-01 23:05  OnlineExam\src\com\zrm\dao\TeacherDAO.java

     文件        486  2016-06-01 23:05  OnlineExam\src\com\zrm\dao\TeacherDAOImpl.java

     文件       2763  2016-05-13 16:56  OnlineExam\src\com\zrm\hibernate\HibernateSessionFactory.java

............此处省略268个文件信息

评论

共有 条评论