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

正文內容

javaee課程設計(電子檔)簡易聊天室,網(wǎng)上購物(編輯修改稿)

2025-07-22 06:59 本頁面
 

【文章內容簡介】 rvletResponse response) throws ServletException, IOException { processRequest(request, response)。 } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response)。 } public String getServletInfo() { return Short description。 }}package 。public class counter { static int counte。 public counter() { counte=0。 } }package 。import 。import 。public class counterListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent evt) { ++。 } public void sessionDestroyed(HttpSessionEvent evt) { 。 }}package 。import 。import 。public class time { public static String getTimeShort(){ SimpleDateFormat timeformat = new SimpleDateFormat(yyyyMMdd HH:mm:ss)。 Date contentTime=new Date()。 String dateString =(contentTime)。 return dateString。 }}package 。import 。import 。import 。import 。import 。import 。public class webchat extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (text/html。charset=UTF8)。 PrintWriter out = ()。 String name=(userID)。 // String talkwords=(String)getServletContext().getAttribute(talking)。 (html)。 (head)。 (title聊天窗口/title)。 (/head)。 (bodytable border=\0\width=\200%\length=\100%\tr)。 (td align=\left\ valign=\bottom\)。 (h3聊天窗口/h3/td/tr/tablehr)。 // (h5當前用戶:++/h5)。 // (table width=\58%\ border=\2\ align=\left\)。 // (trtd)。 // (h5聊天信息/h5)。 // (textarea cols=\101\ rows=\10\ style=\overflow:auto\ ++ /textarea)。 // (textarea name=\text\ clos=\100\ rows=\10\++/textarea)。 // (/tr/td /table)。 (h4當前用戶:++h4)。 (table width=\50%\ border=\1\ align=\left\)。 (trtd)。 (h5聊天信息輸出/h5)。 (textarea name=\talkingwindow\ cols=\100\ rows=\10\ style=\overflow:auto\++ /textarea)。 (/tr/td /table)。 (brbrbrbrbrbrbrbrbrbrbrbr)。 (form action=\Content\ method=\post\)。 (table width=\50%\ border=\1\ align=\left\)。 (trtd)。 (h5聊天信息輸入/h5)。 (textarea name=\talkingtext\ cols=\100\ rows=\10\ /textarea)。 (/tr/td /table)。 (brbrbrbrbrbrbrbrbrbrbrbr)。 (table width=\40%\ border=\0\ align=\right\)。 (trtd)。 (input type=\submit\ align=\right\ name=\btn_submit\ value=\提交\)。 (input type=\reset\ name=\btn_reset\ value=\重置\)。 (/tr/td /table/form)。 // (textarea name=\talkingtext\ clos=\100\ rows=\10\/textareabrbr)。// (input type=\Submit\ name=\btn_submit\+value=\提交\)。 // (input type=\Reset\ name=\btn_reset\+value=\重置\)。 (/body)。 (/html)。 ()。 } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response)。 } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response)。 } public String getServletInfo() { return Short description。 } }年級2009級班號3組號學號專業(yè)網(wǎng)絡工程姓名實驗名稱JSP編程實驗室實驗目的或要求(1)掌握JSP指令的使用方法;
(2)掌握JSP動作的使用方法;
(3)掌握JSP內置對象的使用方法;
(4)掌握JavaBean的編程技術及使用方法;(5)掌握JSP中數(shù)據(jù)庫編程方法;實驗原理(算法流程)登陸界面:輸入用戶名和密碼后,form method=post action= 用戶名:input type=text name=Username id=Username密 碼:input type=password name=Password id=PasswordMain模塊:鏈接數(shù)據(jù)庫:().newInstance()。 conn=(jdbc:mysql://localhost:3306,root,123456)。 String Username= (Username)。設置參數(shù)用戶名和密碼:String Username= (Username)。String Password= (Password)。SQL語句查找在表studinfor中,用戶名和密碼是否匹配。preparedStmt =(select Username from studinfor_table where Username =39。+Username+39。and Password =39。+Password+39。)。執(zhí)行SQL語句sqlRst= ()。實驗原理(算法流程)。if(flag) { jsp:forward page=/ } else { jsp:forward page=/ }登陸失敗頁面 用戶名和密碼不匹配時,提示登錄失敗。 h1登錄失敗,請重新登錄!/h1 h1 align=centerb購物中心登錄/b/h1 form method=post action= 購物車界面放入購物車后, form action= method=post獲取當前用戶的用戶名:%=(Username)%_cart總計:設置一個類 public variable()計算總價格:蘋果的數(shù)量*蘋果的單價+香蕉的數(shù)量*香蕉的單價+葡萄的數(shù)量*葡萄的單價+橘子的數(shù)量*橘子的價格 public float getsumPrice() { setsumPrice(appleAmount*applePrice+bananaAmount*bananaPrice+grapeAmount*grapePrice+orangeAmount*orangePrice)。 return sumPrice。 }定義蘋果單價類,繼承父類 public void setApplePrice(float applePrice) { = applePrice。 }定義蘋果數(shù)量類,繼承父類public void setAppleAmount(float appleAmount) { = appleAmount。 }定義香蕉單價類,繼承父類public void setBananaPrice(float bananaPrice) { = bananaPrice。 }定義香蕉數(shù)量類,繼承父類public void setBananaAmount(float bananaAmount) { = bananaAmount。 }定義葡萄單價類,繼承父類public void
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1