资源简介

JAVA在线考试系统DEMO源码(毕业设计 J2EE)。 可直接运行。做毕业设计、课程设计或者想研究下技术的可以下载学习。需要更多资源的可以关注我。

资源截图

代码片段和文件信息

/**
 * Project Name:ExamDemo
 * File Name:baseController.java
 * Package Name:com.rjxy.action
 * Date:2014-5-21下午1:08:58
 *
 */
package com.rjxy.action;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName: baseController
 * @Description:TODO(这里用一句话描述这个类的作用)
 * @author: zml
 * @date: 2014-5-21 下午1:08:58
 *
 */
public class baseController {
@Autowired  
protected  HttpServletRequest request;

protected static final Log LOG = LogFactory.getLog(baseController.class);

// AJAX输出,返回null
    public String ajax(String content String type HttpServletResponse response) {
        try {
            response.setContentType(type + “;charset=UTF-8“);
            response.setHeader(“Pragma“ “No-cache“);
            response.setHeader(“Cache-Control“ “no-cache“);
            response.setDateHeader(“Expires“ 0);
            response.getWriter().write(content);
            response.getWriter().flush();
        } catch (IOException e) {
            LOG.error(“ajax“ e);
        }
        return null;
    }

/**AJAX输出HTML,返回null**/
    public String ajaxHtml(String html HttpServletResponse response) {
        return ajax(html “text/html“ response);
    }
    
    /**AJAX输出json,返回null**/
    public String ajaxJson(String json HttpServletResponse response) {
        return ajax(json “application/json“ response);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-03 14:52  Exam-master\
     文件         473  2015-05-03 14:52  Exam-master\.classpath
     文件         297  2015-05-03 14:52  Exam-master\.mymetadata
     文件        1953  2015-05-03 14:52  Exam-master\.project
     目录           0  2015-05-03 14:52  Exam-master\.settings\
     文件         500  2015-05-03 14:52  Exam-master\.settings\.jsdtscope
     文件         529  2015-05-03 14:52  Exam-master\.settings\org.eclipse.core.resources.prefs
     文件         629  2015-05-03 14:52  Exam-master\.settings\org.eclipse.jdt.core.prefs
     文件         462  2015-05-03 14:52  Exam-master\.settings\org.eclipse.wst.common.component
     文件         252  2015-05-03 14:52  Exam-master\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-05-03 14:52  Exam-master\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-05-03 14:52  Exam-master\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\meta-INF\
     文件          36  2015-05-03 14:52  Exam-master\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\classes\
     文件         101  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\classes\.gitignore
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\
     目录           0  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\
     文件        4427  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\add_course.jsp
     文件        2154  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\add_nature.jsp
     文件        2697  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\add_profession.jsp
     文件        3213  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\add_subject.jsp
     文件        5997  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\list_course.jsp
     文件        2542  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\list_nature.jsp
     文件        4967  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\list_profession.jsp
     文件        5406  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\list_subject.jsp
     文件        4369  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\list_task.jsp
     文件        4312  2015-05-03 14:52  Exam-master\WebRoot\WEB-INF\jsp\Admin\courseManger\update_course.jsp
............此处省略633个文件信息

评论

共有 条评论