軟件工程畢業(yè)設(shè)計(jì) java在線考試系統(tǒng)
1 項(xiàng)目簡(jiǎn)介
?? Hi,各位同學(xué)好呀,這里是M學(xué)姐!
??今天向大家分享一個(gè)今年(2022)最新完成的畢業(yè)設(shè)計(jì)項(xiàng)目作品
基于java web的在線考試系統(tǒng)
?? 學(xué)長(zhǎng)根據(jù)實(shí)現(xiàn)的難度和等級(jí)對(duì)項(xiàng)目進(jìn)行評(píng)分(最低0分,滿分5分)
難度系數(shù):3分
工作量:3分
項(xiàng)目源碼:https://space.bilibili.com/1015687726
2 實(shí)現(xiàn)效果
廢話不多說,先上實(shí)現(xiàn)效果


















篇幅有限,本文不做過多展示
3 系統(tǒng)設(shè)計(jì)
系統(tǒng)結(jié)構(gòu)分析 考試系統(tǒng)的用戶分為管理員、教師和學(xué)生三種。 管理員:對(duì)教師信息、學(xué)生信息、學(xué)院信息、班級(jí)信息的管理。 教師:題庫的管理、學(xué)生成績(jī)的管理以及試卷的發(fā)布。 學(xué)生:主要是參加考試,考試完可以立即查出自己的考試成績(jī)。

3.2 系統(tǒng)設(shè)計(jì)流程
由于采用Web技術(shù)實(shí)現(xiàn),所以從理論上講,考試可以在任何時(shí)候、任何地方進(jìn)行,但是為了使考場(chǎng)易于組織和管理,所以本系統(tǒng)的考生必須先注冊(cè)一下,然后才能進(jìn)行考試,如果考生沒有注冊(cè),系統(tǒng)也會(huì)認(rèn)為是非法考生,系統(tǒng)給出提示信息,并重新定位到登錄頁面;如信息正確,則顯示試卷頁面,試卷頁面上的試題內(nèi)容根據(jù)考生輸入的試卷代號(hào)從數(shù)據(jù)庫中取出符合條件的記錄動(dòng)態(tài)地生成。同時(shí)在頁面上顯示考試設(shè)定的時(shí)間,當(dāng)考試時(shí)間到或考生點(diǎn)擊“交卷”按鈕時(shí),則系統(tǒng)把考生答案?jìng)魉椭练?wù)器的數(shù)據(jù)庫中保存起來,并把數(shù)據(jù)庫中標(biāo)記考生是否參加過考試的標(biāo)記置為已考??荚囎酉到y(tǒng)是在線考試系統(tǒng)的核心部分,它的工作流程如圖

成績(jī)查詢子系統(tǒng)
為了能讓考生及時(shí)、方便地了解自己的考試成績(jī),查詢子系統(tǒng)也采用Web方式實(shí)現(xiàn)。考生在登陸查詢子系統(tǒng)之后,在頁面輸入自己的合法信息,系統(tǒng)測(cè)試無誤后,服務(wù)器就能把成績(jī)信息傳送到考生的機(jī)器上。工作流程如圖
4 關(guān)鍵代碼
篇幅有限,無法放完整代碼,源碼分析在工程內(nèi)
具體代碼實(shí)現(xiàn)如下:
package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javabean.RLregService;
import javabean.RLregService1;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class add_student extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
? throws ServletException, IOException {
?doPost(request,response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
? throws ServletException, IOException {
?response.setContentType("text/html;charset=gb2312");
?request.setCharacterEncoding("gb2312");
?PrintWriter out = response.getWriter();
?String username=request.getParameter("username");
?String password=request.getParameter("password");
?String rname=request.getParameter("rname");
?String nian=request.getParameter("nian");
?String yue=request.getParameter("yue");
?String ri=request.getParameter("ri");
?String timea=nian+"-"+yue+"-"+ri;
?String sex=request.getParameter("sex");
?String xueyuan=request.getParameter("xueyuan");
?String zhuanye=request.getParameter("zhuanye");
?String banji=request.getParameter("banji");
?String xuehao=request.getParameter("xuehao");
?String email=request.getParameter("email");
?String quanxian=request.getParameter("quanxian");
?RLregService1 userService = new RLregService1();
?boolean temp=userService.userServiceLogic1(username,password,rname,timea,sex,xueyuan,zhuanye,banji,xuehao,email,quanxian);
?if(temp==true){
?out.println("<script>");
?out.println("alert('恭喜!注冊(cè)成功!');");
?out.println("window.location='student_user.jsp'");
?out.println("</script>");
?}
?else{
? out.println("<script>");
? out.println("alert('注冊(cè)失?。?#39;);");
? out.println("window.location='student_user.jsp'");
? out.println("</script>");
?}
}
public void init() throws ServletException {
}
}
5 論文概覽

6 最后
項(xiàng)目源碼:https://space.bilibili.com/1015687726