freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)上購書交易系統(tǒng)—前臺設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)設(shè)計(jì)說明書)-資料下載頁

2025-11-22 16:20本頁面

【導(dǎo)讀】題目:網(wǎng)上購書交易系統(tǒng)—前臺設(shè)計(jì)與實(shí)現(xiàn)

  

【正文】 //通過 id 得到一個(gè) CategoryVO 對象 public CategoryVO loadById (int id) { return (id)。 } // 通過類別名字得到一個(gè) CategoryVO 對象 public CategoryVO loadByName (String name) { return (name)。 } // 修改類別 public void modify (CategoryVO c) { (c)。 } // 刪除類別 public void delete (int id,int pid) { (id,pid)。 } } 代碼 51 30 5. 本論文主要探討 前臺頁面實(shí)現(xiàn),現(xiàn)以注冊和登錄為例做測試。 首先 進(jìn)入注冊頁面注冊。如圖 54 所示。 圖 54 注冊頁面效果圖 注冊關(guān)鍵代碼實(shí)現(xiàn)如 代碼 52 所示。 package 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 31 public class RegisterServlet extends HttpServlet { /** * Constructor of the object. */ public RegisterServlet() { super()。 } /** * Destruction of the servlet. br */ public void destroy() { ()。 // Just puts destroy string in log // Put your code here } /** * The doGet method of the servlet. br * * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (request, response)。 } 32 /** * The doPost method of the servlet. br * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (text/html)。 //接受參數(shù) //int id = ((id))。 String name = (name)。 (name)。 String password = (password)。 int sex = ((sex))。 String realname = (realname)。 String addr = (addr)。 String phone = (phone)。 String postcode = (postcode)。 String = ()。 IUserDAOImpl userDAO = new IUserDAOImpl()。 UserVO userVO = new UserVO()。 (name)。 (password)。 (sex)。 33 (realname)。 (addr)。 (phone)。 (postcode)。 ()。 boolean flag = (userVO)。 if(flag) { ().forward(request, response)。 (注冊成功 )。 } } /** * Initialization of the servlet. br * * @throws ServletException if an error occure */ public void init() throws ServletException { // Put your code here } } 代碼 52 6. 注冊完成后進(jìn)入登錄頁面。 如圖 55 所示。 34 圖 55 登錄界面效果圖 登錄關(guān)鍵代碼實(shí)現(xiàn)如 代碼 53 所示。 package 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 35 public class LoginServlet extends HttpServlet { /** * Constructor of the object. */ public LoginServlet() { super()。 } /** * Destruction of the servlet. br */ public void destroy() { ()。 // Just puts destroy string in log // Put your code here } /** * The doGet method of the servlet. br * * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (request, response)。 } 36 /** * The doPost method of the servlet. br * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //接受相關(guān)參數(shù) name,password (text/html)。 String name = (name)。 String password = (password)。 IUserDAOImpl userDAO = new IUserDAOImpl()。 //調(diào)用數(shù)據(jù)庫進(jìn)行驗(yàn)證用戶名和密碼的正確性 UserVO userVO = (name,password)。 if(()) { //提示登錄成功 String str = 恭喜成功登錄! 。 (err, str)。 ().setAttribute(userVO, userVO)。 (恭喜成功登錄! )。 String ordercar = (action)。 (ordercar)。 if(ordercar.equals(ordercar)) { (準(zhǔn)備跳轉(zhuǎn)到 ........)。 37 ().forward(request, response)。 } else ().forward(request, response)。 } else { //提示登錄失敗 String str = 用 戶名或密碼錯(cuò)誤,請重新登錄! 。 (err,str)。 ().forward(request, response)。 (用戶名或密碼錯(cuò)誤,請重新登錄! )。 } } /** * Initialization of the servlet. br * * @throws ServletException if an error occure */ public void init() throws ServletException { // Put your code here } } 代碼 53 7. 登錄后 ,頁面會在右上角用紅色字體顯示用戶名 pjm。如圖 56 所示。 38 圖 56 登錄后首頁效果圖部分界面 8. 為完善系統(tǒng)前臺功能,我做了進(jìn)一步的測試。故意輸入與要求不符的密碼長度,系統(tǒng)能給出正確判斷,并提示:密碼不能為空或長度格式不對! 如圖 57 所示。 圖 57 密碼長度格式 不對提示 密碼與確認(rèn)密碼輸入不同。系統(tǒng)也能給出正確判斷并提示:密碼與確認(rèn)密碼不一致!如 圖 58 所示。 圖 58 密碼與確認(rèn)密碼不一致提示 至此,系統(tǒng)注冊與登錄前臺基本功能測試沒有發(fā)現(xiàn)明顯問題。 39 第 6 章 結(jié)論 通過一段時(shí)間的努力,終于基本完成了系統(tǒng)的制作,我們做的“網(wǎng)上購書交易系統(tǒng)最大的特點(diǎn)是具有良好的交互性,這主要得益于數(shù)據(jù)庫的良好設(shè)計(jì)。由于時(shí)間和知識的有限,經(jīng)驗(yàn)的不足,系統(tǒng)與真正的商用網(wǎng)站相比,無論是功能的完善性,還是界面的美觀程度,或是系統(tǒng)的安全性與健壯性都有很大的不足。本論文研究主要完成了如 下工作: 1. 回顧了系統(tǒng)開發(fā)所該具備的一些基本知識。 2. 對“網(wǎng)上購書交易系統(tǒng)”進(jìn)行了系統(tǒng)設(shè)計(jì)。 3. 對后臺數(shù)據(jù)庫實(shí)現(xiàn)做了介紹。 4. 介紹了系統(tǒng)前臺各功能模塊。 5. 對前臺實(shí)現(xiàn)做了系統(tǒng)測試。 總結(jié)整個(gè)系統(tǒng)制作過程中的經(jīng)驗(yàn)和教訓(xùn),有下面幾點(diǎn)體會: 1. 要準(zhǔn)備充分,在系統(tǒng)分析設(shè)計(jì)階段要做到盡可能詳細(xì)、全面,以免在以后階段返工,浪費(fèi)時(shí)間與精力。 2. 做好
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1