資源簡介
jsp 微博 課程設計

代碼片段和文件信息
package?com.yxq.toolsbean;
import?java.text.SimpleDateFormat;
import?java.util.Date;
public?class?MyTools?{
/**
?*?@功能?轉換字符串值為int型值
?*?@參數?value為要轉換的字符串
?*?@返回值?int型值
?*/
public?static?String?changeHTML(String?value){
value=value.replace(“&““&“);
value=value.replace(“?““ “);
value=value.replace(“<““<“);
value=value.replace(“>““>“);
value=value.replace(“\r\n““
“);
return?value;
}
/**
?*?@功能?轉換字符串值為int型值
?*?@參數?value為要轉換的字符串
?*?@返回值?int型值
?*/
public?static?int?strToint(String?value){
int?i=-1;
if(value==null||value.equals(““))
return?i;
try{
i=Integer.parseInt(value);
}catch(NumberFormatException?e){
i=-1;
e.printStackTrace();
}
return?i;
}
/**
?*?@功能?解決通過提交表單產生的中文亂碼
?*?@參數?value為要轉換的字符串
?*?@返回值?String型值
?*/
????public??static?String??toChinese(String?value)?{
???? if?(value?==?null)
???? return?““;
???? try?{
????????????value?=?new?String(value.getBytes(“ISO8859_1“)?“gb2312“);
????????????return?value;
????????}?catch?(Exception?e)?{
????????????return?““;
????????}
????}
????/**
?????*?@功能?將Date型日期轉換成指定格式的字符串形式,如“yyyy年MM月dd日?HH:mm:ss”
?????*?@參數?date為要被轉換的Date型日期
?????*?@返回值?String型值
?????*/
public?static?String?changeTime(Date?date)?{
SimpleDateFormat?format=new?SimpleDateFormat(“yyyy年MM月dd日?HH:mm:ss“);
return?format.format(date);
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????456??2011-06-21?14:38??基于jsp和mysql的個人微博\demo\.classpath
?????文件????????285??2011-06-21?13:49??基于jsp和mysql的個人微博\demo\.myme
?????文件???????1222??2011-06-21?14:04??基于jsp和mysql的個人微博\demo\.project
?????文件???????1537??2008-01-30?15:40??基于jsp和mysql的個人微博\demo\src\com\yxq\toolsbean\MyTools.java
?????文件????????783??2011-06-23?10:46??基于jsp和mysql的個人微博\demo\src\com\yxq\valuebean\ArticleBean.java
?????文件????????316??2011-06-22?17:18??基于jsp和mysql的個人微博\demo\src\com\yxq\valuebean\FriendBean.java
?????文件???????1955??2011-06-23?18:04??基于jsp和mysql的個人微博\demo\src\reg\ConnManager.java
?????文件???????1863??2011-06-21?18:52??基于jsp和mysql的個人微博\demo\src\reg\ConnPool.java
?????文件????????690??2011-06-22?09:13??基于jsp和mysql的個人微博\demo\WebRoot\action.jsp
?????文件????????689??2011-06-23?10:07??基于jsp和mysql的個人微博\demo\WebRoot\admin\AdminIndex.jsp
?????文件???????2559??2011-06-23?13:21??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\ArticleAdd.jsp
?????文件???????3598??2011-06-24?09:41??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\ArticleList.jsp
?????文件???????3090??2011-06-24?09:40??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\ArticleSingle.jsp
?????文件???????1133??2011-06-24?09:33??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\del_article.jsp
?????文件???????1098??2011-06-22?23:57??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\moreArticle.jsp
?????文件???????2154??2011-06-24?09:44??基于jsp和mysql的個人微博\demo\WebRoot\admin\article\NewArticle.jsp
?????文件???????1114??2011-06-22?20:11??基于jsp和mysql的個人微博\demo\WebRoot\admin\friend\del_friend.jsp
?????文件???????2744??2011-06-24?09:41??基于jsp和mysql的個人微博\demo\WebRoot\admin\friend\FindFriend_check.jsp
?????文件???????2001??2011-06-24?08:48??基于jsp和mysql的個人微博\demo\WebRoot\admin\friend\FriendAdd.jsp
?????文件???????3071??2011-06-23?17:10??基于jsp和mysql的個人微博\demo\WebRoot\admin\friend\FriendList.jsp
?????文件???????1118??2011-06-22?22:23??基于jsp和mysql的個人微博\demo\WebRoot\admin\friend\succ.jsp
?????文件????????410??2011-06-22?10:56??基于jsp和mysql的個人微博\demo\WebRoot\admin\view\AdminEnd.jsp
?????文件???????1638??2011-06-23?17:12??基于jsp和mysql的個人微博\demo\WebRoot\admin\view\AdminLeft.jsp
?????文件????????968??2011-06-22?21:51??基于jsp和mysql的個人微博\demo\WebRoot\admin\view\AdminTop.jsp
?????文件???????1587??2011-06-21?14:04??基于jsp和mysql的個人微博\demo\WebRoot\error.jsp
?????文件??????23012??2008-01-31?14:32??基于jsp和mysql的個人微博\demo\WebRoot\image\adminLmenu_1.jpg
?????文件??????21605??2008-01-31?14:12??基于jsp和mysql的個人微博\demo\WebRoot\image\adminLmenu_2.jpg
?????文件????????999??2004-07-23?22:18??基于jsp和mysql的個人微博\demo\WebRoot\image\admin_bg.gif
?????文件?????????75??2003-12-17?00:43??基于jsp和mysql的個人微博\demo\WebRoot\image\admin_bg_1.gif
?????文件??????17437??2008-02-01?00:49??基于jsp和mysql的個人微博\demo\WebRoot\image\admin_sonTop.jpg
............此處省略207個文件信息
評論
共有 條評論