【正文】
and development of wireless, Mobile emerce will be a new emerce mode in the electronic merce realm, and it is very promising. It can be predicted that the mobile emerce will bee the major industry of emerce in the 21st century. J2ME is the platform that provides the JAVA language to develop the embedded electronic equipment of expense, which aims at the equipment that resource is limited. Therefore the interactive information exploitation developing with network server and applications of wireless terminal development based on J2ME platform is very important. It is a general method to implement the system of eshop using three layers of pattern: client side + Java servlet + database of SQL Server. All the business logic encapsulated in the servlet, using of the database improved the security, and using the XML data format achieved crossplatform data exchange. To the system demand analysis, the system requirement analysis, the overall of system construction and the detailed design are elaborated in details in this paper, and the system achieves the following functions: Member registration, login, browse detailed information and purchase goods.Key words: J2ME。詳細闡述了系統(tǒng)的需求分析、系統(tǒng)總體架構(gòu)及詳細設(shè)計,系統(tǒng)實現(xiàn)了以下功能:會員注冊、登錄、瀏覽物品詳細信息和購買物品。 選題意義目前,人們逐漸意識到融合移動通信技術(shù)的電子商務(wù)將具有更大的潛力,移動電子商務(wù)的市場前景普遍被業(yè)內(nèi)人士看好。在Windows NT推出后,Microsoft與Sybase在SQL Server的開發(fā)上就分道揚鑣了。Java Servlet API定義了一個servlet和Java使能的服務(wù)器之間的一個標準接口,這使得Servlets具有跨服務(wù)器平臺的特性。JDOM與現(xiàn)行的SAX和DOM標準兼容,為Java程序員提供了一個簡單、輕量的XML文檔操作方法。如果沒有,把用戶注冊的資料插入的用戶信息表中,而后返回注冊成功信息:用戶注冊的名字和密碼。數(shù)據(jù)庫系統(tǒng)處理SQL語句,會將處理結(jié)果以一個結(jié)果集的形式發(fā)送到業(yè)務(wù)邏輯層,業(yè)務(wù)邏輯層將接收到的信息提交給Web層的Servlet程序,Servlet程序再通過HTTP、HTTPS或XML將響應(yīng)信息返回到客戶端。設(shè)置數(shù)據(jù)編碼方式,打開輸出流。它包含一些轉(zhuǎn)換器以將JDOM表示輸出成SAX2事件流、DOM模型或XML文本文檔。結(jié)果處理(輸出/保存)。 encoding = 39。流程圖如圖2。 import .*。 try { JDBCDemo da = new JDBCDemo()。 int count = 0。 (there something wrong here)。**/ private boolean judge(String account, String password) { Connection conn = null。 ()。 stmt = ()。 try { while (()) { (\n)。 Element press = new Element(press)。購買成功服務(wù)端向客戶端發(fā)送的數(shù)據(jù)截圖如圖7。 (jDOM error)。 update_count = (mand)。在升級了我的數(shù)據(jù)庫后仍出現(xiàn)這個問題,想了很久想不出緣由。如何保護用戶的合法信息(賬戶、密碼等)不受侵犯,是一項迫切需要解決的問題。致 謝本文是在何林波老師的熱情關(guān)心和指導下完成的,他淵博的知識和嚴謹?shù)闹螌W作風使我受益匪淺,對順利完成本課題起到了極大的作用。結(jié) 論移動電子商務(wù)系統(tǒng)作為當前移動應(yīng)用一個重要方面。使用數(shù)據(jù)庫連接時候必須升級現(xiàn)有的數(shù)據(jù)庫系統(tǒng),然后安裝JDBC驅(qū)動。 stmt = ()。 } if (().equals(price)) { price = ()。 return myDocument 。 Element bookname = null。轉(zhuǎn)換字符串的實現(xiàn)如下:/**Build resultset to String**/ private String toSstring(ResultSet rs) { StringBuffer s1 = new StringBuffer()。 ResultSet rs = null。 if(()) { ft = false。import 。 if(stmt != null) ()。 (there isomething wrong here)。**/private boolean DBConnection(String account) { Connection conn = null。下面是程序要引用的包:import .*。若用戶沒賬號首先要申請帳號,如果不想申請帳號則也直接退出系統(tǒng)。 encoding = 39。JDOM的使用是直截了當?shù)摹?輸入XML數(shù)據(jù)解析流程由客戶端發(fā)送過來的數(shù)據(jù)是XML的格式,首先服務(wù)端要解析這些XML格式的數(shù)據(jù)得到所需要的信息。JDOM是在Apache許可證下發(fā)布的開放源碼,是JAVA語言中XML和DOM交互的API。利用J2ME和JAVA SERVLET建立企業(yè)級移動電子商務(wù)應(yīng)用是非常合適的,可以通過J2ME技術(shù)建立客戶終端程序,通過JAVA SERVLET建立我的服務(wù)端程序。所以服務(wù)端設(shè)計中要有注冊登陸的功能。SGML是一種元語言,也可以稱為一個定義諸如HTML等標志語言的系統(tǒng)。除了Java Servlet API,Servlet還可以使用用以擴展和添加到API的Java類軟件包。因為與需要昂貴的專用設(shè)備和開發(fā)工具的競爭對手(如索尼和任天堂)相比,J2ME程序可以在PC機上開發(fā)和仿真運行,然后很容易地部署到目標機上,從而使其開發(fā)、測試和發(fā)布的變得容易和廉價。移動電子商務(wù)的快速發(fā)展。J2ME是為嵌入式消費電子設(shè)備提供的JAVA語言開發(fā)平臺,是針對資源受限設(shè)備。有業(yè)內(nèi)人士認為,中國的網(wǎng)上購物人數(shù)在快速增長,年輕的中國男性更熱衷于網(wǎng)上購物。(2) J2ME的優(yōu)點同傳統(tǒng)的WAP相比,J2ME有很多的優(yōu)點。該版本繼承了SQL Server ,具有使用方便可伸縮性好與相關(guān)軟件集成程度高等優(yōu)點。Servlet的功能涉及范圍很廣。下面是開發(fā)平臺及系統(tǒng)配置:操作系統(tǒng):WINDOWS2003。用戶瀏覽到物品信息時想購買的話。在服務(wù)端對應(yīng)的采用DOGET方法。要使用JDBC訪問數(shù)據(jù)庫,首先必須加載JDBC驅(qū)動程序,()。輪循List集合。瀏覽物品模塊的URL地址為:://localhost:8080/userdataservlet。39。 } catch(Exception e) { ()。import 。 rs = (mand)。 String mand = insert into shenfeng128 values(+39。import .*。