• 大小: 4.45M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 语言: Java
  • 标签: 在线考试  SSH  s  

资源简介

ssh在线考试系统

资源截图

代码片段和文件信息

package com.sanqing.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.sanqing.po.Subject;
import com.sanqing.service.SubjectService;
import com.sanqing.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;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-29 09:12  JavaPrj_3\
     文件        1314  2016-11-27 08:25  JavaPrj_3\.classpath
     目录           0  2016-11-27 08:25  JavaPrj_3\.myeclipse\
     文件         515  2009-08-31 20:30  JavaPrj_3\.myhibernatedata
     文件         300  2016-11-27 08:25  JavaPrj_3\.mymetadata
     文件        1954  2016-11-27 08:25  JavaPrj_3\.project
     目录           0  2016-11-27 08:25  JavaPrj_3\.settings\
     文件         500  2016-11-27 08:25  JavaPrj_3\.settings\.jsdtscope
     文件         364  2016-11-27 08:25  JavaPrj_3\.settings\org.eclipse.jdt.core.prefs
     文件         465  2016-11-27 08:25  JavaPrj_3\.settings\org.eclipse.wst.common.component
     文件         252  2016-11-27 08:25  JavaPrj_3\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-11-27 08:25  JavaPrj_3\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-11-27 08:25  JavaPrj_3\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        7255  2016-11-29 09:12  JavaPrj_3\db_examsystem.sql
     目录           0  2016-11-27 08:25  JavaPrj_3\src\
     目录           0  2016-11-27 08:25  JavaPrj_3\src\com\
     目录           0  2016-11-27 08:25  JavaPrj_3\src\com\sanqing\
     目录           0  2016-11-27 08:25  JavaPrj_3\src\com\sanqing\action\
     文件         743  2009-09-02 10:54  JavaPrj_3\src\com\sanqing\action\GetRandomSubject.java
     文件        1823  2009-09-02 10:16  JavaPrj_3\src\com\sanqing\action\LikeQuerySubjectAction.java
     文件        1766  2009-09-02 11:31  JavaPrj_3\src\com\sanqing\action\LoginAction.java
     文件         896  2009-09-02 15:50  JavaPrj_3\src\com\sanqing\action\QueryStudentByClass.java
     文件         932  2009-09-02 15:41  JavaPrj_3\src\com\sanqing\action\QueryStudentByName.java
     文件        1234  2009-09-01 11:33  JavaPrj_3\src\com\sanqing\action\QuerySubjectAction.java
     文件        1134  2009-09-02 15:09  JavaPrj_3\src\com\sanqing\action\ShowSubjectAnswer.java
     文件        2354  2009-09-01 10:46  JavaPrj_3\src\com\sanqing\action\SubjectAddAction.java
     文件         571  2009-09-01 21:30  JavaPrj_3\src\com\sanqing\action\SubjectDeleteAction.java
     文件         783  2009-09-01 20:25  JavaPrj_3\src\com\sanqing\action\SubjectParticularAction.java
     文件        2541  2009-09-01 20:58  JavaPrj_3\src\com\sanqing\action\SubjectUpdateAction.java
     文件         786  2009-09-01 20:30  JavaPrj_3\src\com\sanqing\action\SubjectUpdateBefore.java
     文件        1836  2009-09-02 15:03  JavaPrj_3\src\com\sanqing\action\SubmitExamAction.java
............此处省略249个文件信息

评论

共有 条评论