摘要
Web考试中,进入考试的用户可能在不同地点,给监管带来一定的挑战.通过监测进入和完成考试的用户,可让教师对学员的到场情况有个直观的了解.采用AJAX结合Spring技术实现考试在线用户的实时监测.服务方,利用Spring Bean对象记录在线用户列表,利用Spring REST风格的控制器编程实现Web服务,利用Json变换实现响应消息的封装处理.客户方,利用Javascript事件实现用户进入和退出考试页面的处理,利用XMLHTTP对象实现对服务的调用,利用DHTML技术实现页面的动态更新处理.
Users who take part in online examinations may stay in different places, which brings some challenges to supervise. Teachers could have an intuitive understanding of students' present situation via monitoring users who enter and finish examinations. Based on AJAX combining with Spring techniques, web test online user monitoring is realized in the research. The server takes record of online user list by using Spring Bean object, realizes web service via the programming of the Spring REST style controller, and accomplishes the package of response messages via the exchange of Json. The client browser realizes handling pages of users' entering and exiting examination through JavaScript event, calls services via XMLHT10P object and dynamically updates pages by using DHTML technology.
出处
《长沙大学学报》
2013年第2期60-62,共3页
Journal of Changsha University
基金
江西省教改项目(批准号:JXJG-12-5-24)