中文国产日韩欧美视频,午夜精品999,色综合天天综合网国产成人网,色综合视频一区二区观看,国产高清在线精品,伊人色播,色综合久久天天综合观看

社會(huì)實(shí)踐報(bào)告軟件工程實(shí)習(xí)

時(shí)間:2024-07-13 17:06:00 學(xué)人智庫(kù) 我要投稿
  • 相關(guān)推薦

社會(huì)實(shí)踐報(bào)告軟件工程實(shí)習(xí)

  一、實(shí)習(xí)時(shí)間:

社會(huì)實(shí)踐報(bào)告軟件工程實(shí)習(xí)

  2010年7月12日到2010年7月21日

  二、實(shí)習(xí)地點(diǎn):

  西安行之匯元

  三、指導(dǎo)教師:雷長(zhǎng)春

  四、實(shí)習(xí)目的:

  1.熟悉工作環(huán)境,培養(yǎng)自我職業(yè)能力2.體會(huì)團(tuán)隊(duì)合作,鍛煉自己團(tuán)隊(duì)合作能力3.了解項(xiàng)目開發(fā)流程,熟悉各個(gè)環(huán)境的搭建使用4.掌握jsp,html,css等開發(fā)使用

  五、實(shí)習(xí)內(nèi)容

  題目要求:

  為白領(lǐng),宅男,宅女,在校學(xué)生提供方便快捷的外賣服務(wù).針對(duì)我們的消費(fèi)人群,我們將頁(yè)面做的盡量簡(jiǎn)潔鮮活,以使客戶能夠更容易買到自己想吃的食物。系統(tǒng)采用B/S結(jié)構(gòu)。設(shè)計(jì)過程:

  小組在完成項(xiàng)目的過程中,采用數(shù)據(jù)層、表示層、應(yīng)用層分開的模式進(jìn)行,即模仿簡(jiǎn)單的mvc模式,分界面設(shè)計(jì),數(shù)據(jù)庫(kù)設(shè)計(jì),邏輯處理三部分進(jìn)行。使用的軟件:MyEclipse,SQLServer2000,PowerDesigner,Dreamweaver,Tomcat。出現(xiàn)的問題及解決過程:

  1.讀取參數(shù)的時(shí)候,如果有漢字,就會(huì)出現(xiàn)亂碼。解決方法:加入語(yǔ)句:

  ”response.setContentType("text/html;charset=utf-8");

  request.setCharacterEncoding("utf-8");”設(shè)置參數(shù)編碼格式。2.頁(yè)面的處理問題,因大量的頁(yè)面都是在主頁(yè)面的基礎(chǔ)上進(jìn)行的,導(dǎo)致大量的代碼的重復(fù),改一個(gè)部分就導(dǎo)致很多地方的改動(dòng),非常繁瑣。解決方法:將相同的內(nèi)容放入一個(gè)文件中,然后用include指令將文件包含進(jìn)去。

  3當(dāng)圖片名稱有漢字的時(shí)候無(wú)法顯示。

  解決方法:在Tomcat的配置文件server.xml中的Connecttor項(xiàng)中添加語(yǔ)句URIEncoding="UTF-8",并盡量不使用含有中文名稱的文件。

  4.項(xiàng)目各部分的合成,因沒有用到其他版本控制工具,每次進(jìn)行起來(lái)非常繁瑣,導(dǎo)致大量時(shí)間的浪費(fèi)。

  解決方法:使用CVS,VSS等版本控制工具,但因時(shí)間倉(cāng)促,未能使用。主要程序:

  用戶登錄模塊:response.setContentType("text/html;charset=utf-8

  ");

  request.setCharacterEncoding("utf-8");Useruser=newUser();

  HttpSessions=request.getSession();

  user.setUserName(request.getParameter("userName"));user.setPassword(request.getParameter("password"));DBCondbconn=newDBCon();

  Stringsql="select*fromtb_userwhereusername='"+user.getUserName()+"'andpassword='"+user.getPassword()+"'";ResultSetrst=dbconn.getResult(sql);try{if(!rst.next()){//s.setAttribute("login","no");response.sendRedirect("login_error.html");}else{//s.setAttribute("login","yes");user.setAddress(rst.getString("address"));user.setConnectMethod(rst.getString("connectmethod"));user.setGender(rst.getString("gender"));user.setTrueName(rst.getString("truename"));s.setAttribute("user",user);response.sendRedirect("index.jsp");}}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}

  用戶注冊(cè)模塊:

  response.setContentType("text/html;charset=utf-8");request.setCharacterEncoding("utf-8");Useruser=newUser();RequestDispatcherrd;

  DBCondbconn=newDBCon();

  user.setUserName(request.getParameter("userName"));user.setPassword(request.getParameter("password"));user.setGender(request.getParameter("gender"));

  user.setTrueName(request.getParameter("trueName"));

  user.setConnectMethod(request.getParameter("connectMethod"));user.setAddress(request.getParameter("address"));

  StringverifyCode=request.getParameter("verifyCode");HttpSessions=request.getSession();s.setAttribute("user",user);

  if(verifyCode==null||!verifyCode.equals(s.getAttribute("random"))){regError=true;

  request.setAttribute("verifyCodeError","驗(yàn)證碼錯(cuò)誤!");}else{

  Stringsql="INSERTINTOtb_user"+

  "(address,connectmethod,truename,gender,password,username)"+"VALUES"+"('"+user.getAddress()+"','"+user.getConnectMethod()+"','"+user.getTrueName()+"','"+user.getGender().trim()+"','"+

  user.getPassword()+"','"+user.getUserName()+"')";

  System.out.println(sql);if(!dbconn.setUpdate(sql)){

【社會(huì)實(shí)踐報(bào)告軟件工程實(shí)習(xí)】相關(guān)文章:

軟件工程實(shí)習(xí)報(bào)告范文10-05

軟件工程認(rèn)知實(shí)習(xí)報(bào)告07-18

大學(xué)生軟件工程實(shí)習(xí)報(bào)告06-16

大學(xué)生軟件工程實(shí)習(xí)報(bào)告范文09-03

軟件工程實(shí)習(xí)心得10-30

計(jì)算機(jī)軟件工程實(shí)習(xí)報(bào)告范文09-19

寒假實(shí)習(xí)社會(huì)實(shí)踐報(bào)告06-13

教育實(shí)習(xí)社會(huì)實(shí)踐報(bào)告10-03

軟件工程論文開題報(bào)告09-10

軟件工程開題報(bào)告參考08-21