【正文】
tring s1=(2)。 (truename)。 String name=(2)。 (reply)。 while(()) { int usersid=(1)。 }} //用戶信息檢驗(yàn) public boolean checkUserInfo()throws Exception { boolean flag=false。 public UserBean() { try {//取得數(shù)據(jù)庫(kù)連接 con = ()。 過濾器的配置 建立 Servlet 過濾器后,就可以在 中利用 filter元素以及 filtername(用戶定義的過濾器的名稱)、 fileclass(完整的過濾器類名)和 initparams(可選的)子元素聲明它。典型的功能包括記錄關(guān)于請(qǐng)求和響應(yīng)的數(shù)據(jù) 、處理安全協(xié)議、管理會(huì)話屬性等。其功能定義如圖 22: 用戶注冊(cè)及登錄 用戶注冊(cè) 用戶登錄 用戶修改注冊(cè)信息 江西理工大學(xué)應(yīng)用科學(xué)學(xué)院 7 圖 22 購(gòu)物車功能分析 本系統(tǒng)的核心功能就是實(shí)現(xiàn)登錄用戶的網(wǎng)上購(gòu)物過程。通過對(duì)現(xiàn)有的網(wǎng)上花店調(diào)查分析,我們發(fā)現(xiàn)目前所使用的管理軟件過于繁瑣,操作比較復(fù)雜,而其中軟件的許多功能不被公司所采用,造成軟件冗余量大,有許多功能就公司目前的狀況來(lái)說(shuō)還起不到作用。 圖 12 第三步:?jiǎn)螕? “ 系統(tǒng)變量 ” 部分的 “ 新建按扭 ” ,創(chuàng)建 JAVAHOME 變量,在變量值欄內(nèi)輸入 C:\。 Java Servlet 是 JSP 的技術(shù)基礎(chǔ),而且大型的 Web 應(yīng)用程序的開發(fā)需要 Java Servlet 和 JSP配合才能完成。 網(wǎng)上花店是根據(jù)實(shí)際需求、應(yīng)用 jsp+javabean 和 sql20xx 數(shù)據(jù)庫(kù)技術(shù)開發(fā)而成。同時(shí),就是為了保證鮮花交易的正常進(jìn)行,必須對(duì)用戶的身份進(jìn)行驗(yàn)證。 作 者 簽 名: 日 期: 指導(dǎo)教師簽名: 日 期: 使用授權(quán)說(shuō)明 本人完全了解 大學(xué)關(guān)于收集、保存、使用畢業(yè)設(shè)計(jì)(論文)的規(guī)定,即:按照學(xué)校要求提交畢業(yè)設(shè)計(jì)(論文)的印刷本和電子版本;學(xué)校有權(quán)保存畢業(yè)設(shè)計(jì)(論文)的印刷本和電子版,并提供目錄檢索與閱覽服務(wù);學(xué)校可以采用影印、縮印、數(shù)字化或其它復(fù)制手段保存論文;在不以贏利為目的前提下,學(xué)??梢怨颊撐牡牟糠只蛉?jī)?nèi)容。 關(guān)鍵詞:在線鮮花銷售; jsp; 網(wǎng)上花店的設(shè)計(jì)與實(shí)現(xiàn) IV Design and Implementation of the web flower shop Abstract With the development of puter science, the application of the technology of the database in Inter was more and more extensive at the end of the 20th century. It has offered more thoughtful and more humanized service to the masses of work users. Individualization has already nowadays bee the trend of web application gradually. This text has studied one kind of system of online books selling system of related datum rule. Compared with some schemes that have already been adopted on the now, users use simpler, such advantages as the interface is more ocular in this scheme. Online flowers selling system starts just in our country, but quickly developed. With more popular and onlineflowers selling systems of Inter in our country it is more ripper. There will be more and more consuming groups, the market potential will be given full play to. Not merely helpless to the settlement of the problem to the unseasonable making excessive demands of this system, and will delay the business opportunity, make oneself in the passive position. At beginning of this text, I have introduced the background of the individualized page and general principle of JDK +tomcat +JSP system. At next explained the whole individualized page produces systematic structure of the system and operation principle. At last designed and realized users management, flower catalogue management, flowers information input management, looking for flowers and find out, the flower does shopping and pays for such JSP pages as the function ,etc. Keywords: online sales of flowers。一個(gè)網(wǎng)站,特 別是花站更應(yīng)該具備吸引力強(qiáng)大的外觀和貼近人心靈的語(yǔ)言以及提高人們對(duì)鮮花的熱愛和了解。 Web 服務(wù)器在遇到訪問 JSP 網(wǎng)頁(yè)的請(qǐng)求時(shí),首先執(zhí)行其中的程序段,然后將執(zhí)行結(jié)果連同 JSP 文件中的 HTML 代碼一起返回給客戶。訪問的地址 , Tomcat 服務(wù)器的兼容性很好,如 WebLogic 服務(wù)器采用其為 Web 服務(wù)器引擎, Jbuilder 將其作為標(biāo)準(zhǔn)的測(cè)試服務(wù)器,Sun 公司也將其作為 JSP 技術(shù)應(yīng)用的示例服務(wù)器。 今天的商業(yè)環(huán)境要求不同類型的數(shù)據(jù)庫(kù)解決方案。 ( 2)用戶登錄后可以根據(jù)價(jià)格、類型和其他關(guān)鍵詞進(jìn)行查詢。 本系統(tǒng)數(shù)據(jù)庫(kù)中各個(gè)數(shù)據(jù)表的字段定義和說(shuō)明如 表 31: 表名 列名 數(shù)據(jù)類型 長(zhǎng)度 主鍵 admin 管理員表 adminId int adminName varchar 40 adminPass varchar 40 users 客戶表 usersId int usersName varchar 40 usersPass varchar 40 usersRepass varchar 40 江西理工大學(xué)應(yīng)用科學(xué)學(xué)院 9 usersPassQuestion varchar 40 sort 產(chǎn)品類別表 sortId int sortName (40) varchar 40 goods 商品表 goodsId int goodsName varchar 40 goodsmaterial varchar 200 goodsPackage varchar 200 goodsLanguage varchar 200 goodsPrice float goodsCent varchar 40 goodsScope varchar goodsPlace varchar goodsHabitus varchar sortName 40 constraint pk_goodsId produce 廠商表 produceId int produceName varchar 40 produceDetails 廠商產(chǎn)品明細(xì)表 produceId int produceName varchar 40 sortId int goodsId int orders 訂單表 ordersId int usersName varchar 40 ordersPrice varchar 40 ordersDatetime varchar 40 constraint varchar pk_ordersId ordersDetails 訂單明細(xì)表 ordersId int goodsName varchar 40 goodsPrice varchar 40 goodsCount int leaveLanguage 留言表 leaveLanguageId int name varchar 40 qq varchar 40 varchar 40 leaveLanguage varchar 200 dateTime varchar 40 safeLog 安全日志表 網(wǎng)上花店的設(shè)計(jì)與實(shí)現(xiàn) 10 logId int usersId varchar 40 landingDatetime varchar 40 exitDatetime varchar 40 表 31 各個(gè)數(shù)據(jù)表之間的關(guān)聯(lián)關(guān)系如圖 32: 圖 32 本系統(tǒng)的存儲(chǔ)過程設(shè)計(jì)如表 32 所示 : 過程名 輸入 輸出 依賴表 事務(wù)處理 業(yè)務(wù)功能描述 Pro_orders OrdersName OrdersPrice GoodsCount ordersID Orders Insert Select 用戶生成訂單,將訂單信息保存到數(shù)據(jù)庫(kù)中,并返回 ID號(hào) Pro_users usersName usersPass usersRepass usersPassQuestion usersPassReply usersTrueName usersAddress usersPhone usersE_mail usersID users Insert select 用戶輸入注冊(cè)信息后,將注冊(cè)信息保存到數(shù)據(jù)庫(kù)中,并返回用戶 ID 號(hào) Pro_goods goodsName goodsmaterial goodsPackage goodsLanguage goodsPrice goodsCent goodsID goods Insert select 管理員輸入產(chǎn)品信息后,將產(chǎn)品信息保存到數(shù)據(jù)庫(kù)中,并返回商品 ID 號(hào) 江西理工大學(xué)應(yīng)用科學(xué)學(xué)院 11 goodsScope goodsPlace goodsPlace goodsHabius sortName 表 32 系統(tǒng)流程及模塊 設(shè)計(jì) 根據(jù)上面的需求分析,將系統(tǒng)劃分為以下幾個(gè)模塊 : 用戶登錄模塊:負(fù)責(zé)驗(yàn)證系統(tǒng)中用戶的登錄信息 商品查詢模塊:負(fù)責(zé)根據(jù)用戶輸入的各種條件快速查找符合用戶要求的鮮花商品。 所有的 Servlet 過濾器類都必須實(shí)現(xiàn) 接口,這個(gè)接口含有三個(gè)過濾器類必須實(shí)現(xiàn)的方法。其詳細(xì)代碼如下: package 。 (6,())。 throw e。 String =(10)。 } return user1。 //(i+ +s1+ +s2+ +s3+ +s4+ +s5+ +s6+ **