【正文】
Get(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session=()。 String toJsp=。 String id=(id)。 String pwd=(password)。 String query=SELECT * FROM adminList WHERE id=+\39。+ id + \39。 +AND password=+\39。+ pwd + \39。 DBClass db=new DBClass()。 ()。 ResultSet resultset=(query)。 try{ if(()){ (adminId, id)。 toJsp=/。 } else { 17 toJsp=/。 (errInf,*密碼與帳號不匹配 )。 } }catch(SQLException sqle){ (Erro with connection:+sqle)。 } ()。 RequestDispatcher dispatcher = (toJsp)。 (request, response)。 } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request,response)。 } } 18 結(jié)束語 在系統(tǒng)設(shè)計及實現(xiàn)的過程中,遇到不少困難,最煩惱的莫過于找錯糾錯了。經(jīng)過指導(dǎo)老師指點、查閱相關(guān)資料,錯誤都及時糾正解決了,并且積累了一定的編程經(jīng)驗,同時了解到 在應(yīng)用開發(fā)的過程中,總會遇到一些“難以理解”的系統(tǒng)缺陷和“不易解決”的問題,但是通過認(rèn)真分析、不恥下問,多向水平比自己高的人請教就可以解決多數(shù)問題。 在向數(shù)據(jù)表插入數(shù)據(jù)時,如果為英文字符,存儲內(nèi)容完全正確,如果存入中文字符,部分?jǐn)?shù)據(jù)庫只能存儲前七八個中文字符,其他內(nèi)容被截去,導(dǎo)致存 儲內(nèi)容的不完整(有些數(shù)據(jù)庫不存在這個問題,如 Sybase SQL Anywhere 。 JDBCODBC Bridge 還存在無法建表的 Bug)。 對于廣大需要存儲中文信息的 Java 程序員來說,這可是一個不好的消息。要么改用其他語言編程,要么選擇其他價格昂貴的數(shù)據(jù)庫產(chǎn)品?!耙淮尉帉?,到處運行”的目標(biāo),也大打折扣。能不能采用變通的方法,將中文信息進(jìn)行處理后再存儲來解決這個問題呢?答案是肯定的,解決辦法就是: Java 采用 Unicode 碼編碼方式,中英文字符均采用 16bit 存儲。既然存儲英文信息是正確的 ,根據(jù)一定規(guī)則,將中文信息轉(zhuǎn)換成英文信息后存儲,自然不會出現(xiàn)截尾現(xiàn)象。讀取信息時再進(jìn)行逆向操作,將英文信息還原成中文信息即可。由GB2312 編碼規(guī)則可知,漢字一般為二個高位為 1 的 ASCII 碼,在轉(zhuǎn)換時將一個漢字的二個高位 1 去掉,還原時再將二個高位 1 加上。為了處理含有英文字符的中文字串,對英文字符則需要加上一個 Byte 0標(biāo)記。 19 參考文獻(xiàn) 1. 石志國、薜為民、董潔 編著 .《 JSP應(yīng)用教程》 [M].清華大學(xué)出版 .202210 2. 陳松喬、任勝兵、王國軍編著 .《現(xiàn)代軟件工程》 [M].清華大學(xué)出版 社 .20226 3. 張洪偉編著 .《 JSP網(wǎng)絡(luò)開發(fā)技術(shù)與整合應(yīng)用》 [M].清華大學(xué)出版社 .20229 4. 李建國、雷之宇、湯豐、胡兵編著 .《 JSP程序設(shè)計實務(wù)入門》 [M].中國鐵道出版社 202206 5. 朱敏、朱曉婷、李媛媛編著 .《 JSP WEB 應(yīng)用教程》 [M].清華大學(xué)出版社 .202207 6. 紅杰、周榮輝編著 .《 Java2 程序設(shè)計實用教程》 [M].機械工業(yè)出版社 .20229 g an employment tribunal claim Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s antiracism taskforce, is in London for the 20 Football Association39。s 150th anniversary celebrations and will attend City39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。s about how he felt and I would like to speak to him first to find out what his experience was. Uefa has opened disciplinary proceedings against CSKA for the racist behaviour of their fans during City39。s 21 win. Michel Platini, president of European football39。s governing body, has also ordered an immediate investigation into the referee39。s actio