【正文】
頁(yè)面 .會(huì)員信息頁(yè)面的顯示 查看個(gè)人信息的代碼如下: body background % Object obj user 。 rs SELECT * FROM user where user 39。 catch Exception e return str。 Connection con null。,password 39。 where userid 39。運(yùn)行界面如圖 54: 圖 54 刪除新聞頁(yè)面 通 過(guò)獲得新聞的編號(hào)來(lái)對(duì)新聞進(jìn)行刪除,具體代碼如下: .后臺(tái)數(shù)據(jù)庫(kù)中數(shù)據(jù)的刪除 % String isbn isbn 。+isbn+39。 try .JdbcOdbcDriver 。 Connection con。+isbn+39。 return str。 catch ClassNotFoundException e try con jdbc:odbc:wzxw, 。 。 return str。 try .JdbcOdbcDriver 。+liuyan+39。在系統(tǒng)的開(kāi)發(fā)過(guò)程中,多門(mén)以前感覺(jué)很抽象的課程,如軟件工程、數(shù)據(jù)庫(kù)原理、面向?qū)ο蟪绦蛟O(shè)計(jì)等變得清晰起來(lái),強(qiáng)烈地感覺(jué)到這幾門(mén)理論課程在實(shí)踐中的重要性。經(jīng)過(guò)幾周的奮戰(zhàn)我的畢業(yè)設(shè)計(jì)終于完成了。表 liuyan 的結(jié)構(gòu)如表 B5 所示。表 user 的結(jié)構(gòu)如表 所示。 我相信,只要肯鉆研,只要擠時(shí)間,一切自己想要的知識(shí)都可以掌握。 這次的設(shè)計(jì),從選題到實(shí)現(xiàn),幾乎都是自己獨(dú)立完成的。+timu+39。 Statement sql null。留言運(yùn)行結(jié)果如圖 63 所示 圖 63 留言 .后臺(tái)數(shù)據(jù)庫(kù)的插入 %! public String transch String str try byte[] lb iso88591 。 。 ResultSet rs。 圖 62 關(guān)鍵字查詢 .新聞搜索并顯示 關(guān)鍵字查找新聞控制層代碼實(shí)現(xiàn)如下: %! public String transch String str try byte lb[] iso88591 。 sql 。 catch SQLException e1 。 Statement sql。 sql 。% % 。 , 39。 String condition update user set user 39。 String adds transch adds 。 str new String lb,gb2312 。 catch ClassNotFoundException e try con jdbc:odbc:wzxw, 。 if i 0 % jsp:forward page / % else % jsp:forward page / % 。,39。 Connection con null。 % input type submit name Submit value 提交 .后臺(tái)數(shù)據(jù)插入 后臺(tái)插入數(shù)據(jù)庫(kù)的代碼如下: %! public String transch String str try byte[] lb iso88591 。 try .JdbcOdbcDriver 。 str new String lb,utf8 。 rs SELECT * FROM user where user 39。 user,user 。他可以發(fā)布新聞、修改新聞、刪除新聞、查看留言、回復(fù)、修改個(gè)人信息;另一個(gè)是總管理員,他可以對(duì)新聞的類(lèi)別進(jìn)行修改、添加、查看、對(duì)會(huì)員進(jìn)行查看。 邏輯結(jié)構(gòu)設(shè)計(jì) 本系統(tǒng)數(shù)據(jù)庫(kù)采用 access 數(shù)據(jù)庫(kù),系統(tǒng)數(shù)據(jù)庫(kù)名稱為 db1。 后臺(tái)管理新聞發(fā)布系統(tǒng)前臺(tái)功能結(jié)構(gòu),如圖 21 所示。 發(fā)布新聞的功能。 本系統(tǒng)實(shí)現(xiàn)了對(duì)新聞的添加、修改、刪除、審核,以及對(duì)用戶的管理等功能,在前臺(tái)新聞瀏覽模塊當(dāng)中,可以用戶注冊(cè),發(fā)表新聞評(píng)論,搜索新聞等功能,完成了一個(gè)新聞發(fā)布系統(tǒng)的所有基本功能??焖偌皶r(shí)的新聞瀏覽,五彩繽紛的網(wǎng)上信息,使網(wǎng)絡(luò)與人們的 生活息息相關(guān),于是世界上又出現(xiàn)了第三媒體―― Inter。s work and life style. The homepage has the characteristics of the big information content, the fast transmission , having no limit of the space and time, and so this cybertimes, the news that people understood is not only stemming from TV , newspaper ,etc., but else steming from the work. So news release system bee everybody to be approved to browse through best route of news in work just. This system has been realized adding , modification , deleting , verifying to news, and management in user function, news have a look around module in front desk, the all right registration of users, publish news analysis , search for functions such as the news ,etc., have finished all basic functions of a news release system. Keyword: The JSP, press conference, the Access? 前 言 Inter 的蓬勃發(fā)展,使新聞的傳播方式發(fā)生了巨大的變化,傳統(tǒng)的信息傳播媒體電視、廣播、報(bào)紙已經(jīng)不再是人們茶余飯后的主要精神甜點(diǎn),人們更多的開(kāi)始關(guān)注網(wǎng)絡(luò)新聞。 為后臺(tái)管理提供管理入口。 設(shè)置新聞搜索功能模塊。 圖 41 網(wǎng)站前臺(tái)首頁(yè)運(yùn)行結(jié)果 網(wǎng)站框架圖說(shuō)明如如表 41 所示: 表 `41 網(wǎng)站前臺(tái)首頁(yè)頁(yè)面說(shuō)明 區(qū)域 名稱 說(shuō)明 對(duì)應(yīng)文件 1 內(nèi)容顯示 主要用于顯示所有的新聞 2 搜索新聞 主要用于快速查找新聞 3 功能模塊 主要用于顯示導(dǎo)航模塊中的功能 網(wǎng)站后臺(tái)會(huì)員首頁(yè)的運(yùn)行結(jié)果如圖 42 所示。 圖 51 會(huì)員登錄頁(yè)面 . .后臺(tái)的驗(yàn)證