資源簡介
系統概述:
本系統基于Java平臺,采用設計模式:MVC(模型--視圖--控制),采用的技術:Jsp+JavaBean+Struts+JDBC,數據庫:MySQL
Struts采用Struts 1.2 版本,MySQL采用MySQL5.0
系統特色:
1,欄目無限級分類,形成樹型結構,可以隨意增加,修改,移動,刪除欄目,移動或刪除欄目的同時系統自動移動或刪除其對應子欄目和信息。
2,系統支持國際化,采用UTF-8編碼,資源文件里可以設置多國語言,形成多國語言界面。
3,系統采用Struts標簽制,避免Jsp頁面出java代碼。
3,完全生成前臺靜態頁面,大大提高網民瀏覽前臺頁面的速度,降低服務器的資源開銷。

代碼片段和文件信息
/*
?*?Generated?by?MyEclipse?Struts
?*?Template?path:?templates/java/JavaClass.vtl
?*/
package?com.hao2007.struts.action;
import?java.sql.ResultSet;
import?java.util.Date;
import?java.text.SimpleDateFormat;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?org.apache.struts.action.Action;
import?org.apache.struts.action.ActionForm;
import?org.apache.struts.action.ActionForward;
import?org.apache.struts.action.ActionMapping;
import?com.hao2007.struts.form.AddNewsForm;
import?com.hao2007.struts.db.DataStore;
import?java.io.PrintWriter;
/**
?*?MyEclipse?Struts?Creation?date:?03-30-2007
?*?
?*?XDoclet?definition:
?*?
?*?@struts.action?path=“/addNews“?name=“addNewsForm“?input=“/admin/addNews.jsp“
?*????????????????scope=“request“?validate=“true“
?*?@struts.action-forward?name=“addNewsFail“?path=“/admin/addNewsFail.jsp“
?*?@struts.action-forward?name=“addNewsSuccess“?path=“/admin/addNewsSuccess.jsp“
?*/
public?class?AddNewsAction?extends?Action?{
/*
?*?Generated?Methods
?*/
/**
?*?Method?execute
?*?
?*?@param?mapping
?*?@param?form
?*?@param?request
?*?@param?response
?*?@return?ActionForward
?*/
public?ActionForward?execute(ActionMapping?mapping?ActionForm?form
HttpServletRequest?request?HttpServletResponse?response)
throws?Exception?{
AddNewsForm?addNewsForm?=?(AddNewsForm)?form;//?TODO?Auto-generated
//?method?stub
String?title?=?(String)?addNewsForm.gettitle();
String?key_words?=?(String)?addNewsForm.getKey_words();
int?sort_id?=?Integer.parseInt(addNewsForm.getSort_id());
String?content?=?(String)?addNewsForm.getContent();
String?source?=?(String)?addNewsForm.getSource();
String?author?=?(String)?addNewsForm.getAuthor();
if?(title?==?null?||?title.equals(“null“))?{
title?=?““;
}
if?(key_words?==?null?||?key_words.equals(“null“))?{
key_words?=?““;
}
if?(content?==?null?||?content.equals(“null“))?{
content?=?““;
}
if?(source?==?null?||?source.equals(“null“))?{
source?=?““;
}
if?(author?==?null?||?author.equals(“null“))?{
author?=?““;
}
Date?date?=?new?Date();
SimpleDateFormat?dateFormat?=?new?SimpleDateFormat(
“yyyy-MM-dd?HH:mm:ss“);
DataStore?ds?=?DataStore.getInstance();
//????sort_path
String?sort_path?=?““;
ResultSet?rs?=?null;
String?sql0?=?“select?sort_path?from?class?where?id=‘“?+?sort_id?+?“‘“;
ds.beginTransaction();
try?{
rs?=?ds.read(sql0);
}?catch?(Exception?e)?{
e.printStackTrace();
}
if?(rs?!=?null?&&?rs.next())?{
sort_path?=?rs.getString(“sort_path“);
rs.close();
rs?=?null;
}
ds.commitTransaction();
//?//////??????
String?sql?=?“insert?into?news(titlekey_wordssort_idsort_pathcontentsourceauthoradd_time)?values(‘“
+?title
+?“‘‘“
+?key_words
+?“‘‘“
+?sort_id
+?“‘‘“
+?sort_path
+?“‘‘“
+?content
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3314??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\addNews.jsp
?????文件????????981??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\addNewsSuccess.jsp
?????文件???????2345??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\addSort.jsp
?????文件????????806??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\addSortSuccess.jsp
?????文件????????984??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\delNewsSuccess.jsp
?????文件???????1944??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\delSort.jsp
?????文件????????524??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\delSortSuccess.jsp
?????文件???????3588??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\editNews.jsp
?????文件????????987??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\editNewsSubmitSuccess.jsp
?????文件???????2257??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\editSort.jsp
?????文件????????525??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\editSortSuccess.jsp
?????文件????????955??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\error.jsp
?????文件????????299??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\about.gif
?????文件????????219??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\abspos.gif
?????文件????????237??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\anchor.gif
?????文件????????125??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\art.gif
?????文件????????162??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\backcolor.gif
?????文件????????253??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\backward.gif
?????文件????????285??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\bgcolor.gif
?????文件????????272??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\bgpic.gif
?????文件?????????88??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\bl
?????文件?????????76??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\bold.gif
?????文件????????267??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\br.gif
?????文件?????????71??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\checked.gif
?????文件????????210??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\code.gif
?????文件????????156??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\componentmenu.gif
?????文件????????262??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\copy.gif
?????文件????????233??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\createli
?????文件????????202??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\css.gif
?????文件????????229??2007-08-31?16:45??信息管理系統\zhicun\已編譯文件\hao2007\admin\eWebEditor_V4.60\buttonimage\blue\cut.gif
............此處省略1077個文件信息
- 上一篇:android二維碼掃描DEMO
- 下一篇:尚硅谷1024專用全套視頻打包
評論
共有 條評論