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

正文內(nèi)容

基于strutshibernate網(wǎng)上論壇系統(tǒng)課程設(shè)計任務(wù)書-wenkub

2022-09-07 15:04:11 本頁面
 

【正文】 目錄, 程序流程圖 , 數(shù)據(jù)庫及 Hibernate 設(shè)計 、 Action和 Form 設(shè)計及頁面設(shè)計、 程序,總結(jié) (印象較深的經(jīng)驗(yàn) /教訓(xùn)等 ) 。 2. 說明系統(tǒng)設(shè)計的功能及模塊,畫出系統(tǒng)流程圖。 4. 新建話題模塊。通過網(wǎng)上論壇系統(tǒng)的設(shè)計和開發(fā)可以了解到類似系統(tǒng)的功能邏輯以及用 Struts 和 Hibernate 實(shí)現(xiàn)的基礎(chǔ)?;?Struts+Hibernate 網(wǎng)上論壇系統(tǒng) 課程設(shè)計任務(wù)書 系別 電氣與電子工程 系 專業(yè) 計算機(jī)應(yīng)用技術(shù) 班級 指導(dǎo)教 師師 題目 基于 Struts+Hibernate 網(wǎng)上論壇系統(tǒng) 設(shè)計目的: 論壇系統(tǒng)是網(wǎng)站開發(fā)中很典型的一個例子。 設(shè)計要求 包含以下模塊 : 1. 用戶登錄和驗(yàn)證模塊。 5. 新建回復(fù)模塊。 3. 數(shù)據(jù)庫設(shè)計與 Hibernate 設(shè)計 。要求: 設(shè)計要有相應(yīng)的設(shè)計報告,報告要包含題目、目錄、摘要、關(guān)鍵字、正文、參考文獻(xiàn)幾部分;字體、字號格式按樣文設(shè)置;正文要有需求分析、概 要設(shè)計、詳細(xì)設(shè)計、代碼、結(jié)論等部分構(gòu)成,并有必要的圖表和效果圖。 論壇又名網(wǎng)絡(luò)論壇 BBS,全稱為 Bulletin Board System(電子公告板)。用戶在 BBS 站 點(diǎn)上可以獲得各種信息服務(wù),發(fā)布信息,進(jìn)行討論,聊天等等。它是功能豐富的 JavaEE 集成開發(fā)環(huán)境,包括了完備的編碼、調(diào)試、測試和發(fā)布功能,完整支持 HTML, Struts, JSP, CSS, Javascript, SQL, Hibernate。實(shí)際上 Tomcat 部分是 Apache 服務(wù)器的擴(kuò)展,但它是獨(dú)立運(yùn)行的,所以當(dāng)你運(yùn)行 tomcat 時,它實(shí)際上作為一個與Apache 獨(dú)立的進(jìn)程單獨(dú)運(yùn)行的。目前 Tomcat 最新版本為 。 struts簡單介紹 struts是開源軟件。 Struts繼承了 MVC 的各項(xiàng)特性,并根據(jù) J2EE 的特點(diǎn),做了相應(yīng)的變化與擴(kuò)展。它作為連接 Java應(yīng)用程序和數(shù)據(jù)庫的中間件,對 JDBC進(jìn)行簡單封裝,負(fù)責(zé) java對象的持久化。它們各自處理自己的任務(wù)。 MVC結(jié) 構(gòu) 基于 Struts+Hibernate 網(wǎng)上論壇系統(tǒng) 7 第三章 網(wǎng)上論壇系統(tǒng)開發(fā) 一、 數(shù)據(jù)庫 開發(fā)與設(shè)計 ( ) sessionfactory property name=jdbc: property name=/property property name=root/property property name=123/property property name=/property property name=true/property mapping resource=// mapping resource=// mapping resource=// /sessionfactory package 。 SchemaExport export=new SchemaExport(cfg)。 private String password。 } public String getPassword() { return password。 }} 用戶表的映射文件配置 ( ) class name= table=user id name=id column=id generator class=native / /id property name=username column=username / property name=password column=password / /class ( 2) : package 。 public class Message { private Date time。 private int id。 } public String getAuthor() { return author。 } public int getId() { return id。 } public String getTitle() { return title。 }} 帖子表的映射文件配置 ( ) class name=Message table=message 基于 Struts+Hibernate 網(wǎng)上論壇系統(tǒng) 10 id name=id column=id generator class=native / /id property name=time column=time / property name=content column=content / property name=author column=author / property name=title column=title / set name=ment table=ment lazy=false inverse=true cascade=saveupdate key column=message_id/key onetomany class= /onetomany /set /class ( 3) package 。 private String author。 } public String getAuthor() { return author。 } public int getId() { return id。 } public Date getTime() { return time。 public class LoginAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LoginActionForm laf=(LoginActionForm)form。 Session session=()。 Query query=(sqlQuery)。 User user=new User()。 if(!().equals(password)) { return (error)。 } HttpSession Session=()。 import 。 import 。 import 。 import 。 String password=()。 (password)。 (user)。 }} 1)首頁界面 2)主要代 碼 strutsconfig formbeans 基于 Struts+Hibernate 網(wǎng)上論壇系統(tǒng) 16 formbean name=postForm type=/formbean /formbeans action name=postForm path=/post type= forward name=messages path=//forward forward name=add path=//forward forward name=view path=//forward forward name=addment path=//forward /action/actionmappings /strutsconfig package 。 import 。 import 。 import 。 import 。 String mode = (mode)。 }else if (addment.equalsIgnoreCase(mode)) { return executeAddCommentAction(mapping, postForm, request, response)。 (null)。 Message message = new Message()。 HttpSession Session = ()。 Session session = ()。 ()。 SessionFactory sf = new Configuration().configure() .buildSessionFactory()。 + hid + 39。 ()。 } private ActionForward executeAddCommentAction(ActionMapping mapping, PostForm form, HttpServletRequest request, HttpServletResponse response) { return (addment)。 (new Date())。 (author)。 String sqlQuery = select m from Message m where =39。 Message message = (Message) (0)。 (())。 ()。 SessionFactory sf = new Configuration().configure() .buildSessionFactory()。 Query lQuery = (sqlQuery)。 for(int i=0。 Iterator iterator = ()。 } } 碼編寫 body div id=Layer1 style=top: 45px。 div align=center class=STYLE1 p
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1