資源簡介
PersonalPlatform.rar

代碼片段和文件信息
/*
?*?創建日期?2005-12-27
?*
?*?TODO?要更改此生成的文件的模板,請轉至
?*?窗口?-?首選項?-?Java?-?代碼樣式?-?代碼模板
?*/
package?bit.jeffy.action;
import?java.sql.SQLException;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;
import?org.apache.struts.action.Action;
import?org.apache.struts.action.Actionerrors;
import?org.apache.struts.action.Actionerrors;
import?org.apache.struts.action.ActionForm;
import?org.apache.struts.action.ActionForward;
import?org.apache.struts.action.ActionMapping;
import?org.apache.struts.action.ActionMessage;
import?bit.jeffy.db.DataStore;
import?bit.jeffy.personal.RemindBean;
/**
?*?@author?jeffy
?*
?*?TODO?要更改此生成的類型注釋的模板,請轉至
?*?窗口?-?首選項?-?Java?-?代碼樣式?-?代碼模板
?*/
public?class?AddRemindAction?extends?Action?{
/*?(非?Javadoc)
?*?@see?org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping?org.apache.struts.action.ActionForm?javax.servlet.http.HttpServletRequest?javax.servlet.http.HttpServletResponse)
?*/
public?ActionForward?execute(ActionMapping?map?ActionForm?form
HttpServletRequest?request?HttpServletResponse?response)?throws?Exception?{
//?TODO?自動生成方法存根
HttpSession?session?=?request.getSession();
Actionerrors?errors?=?new?Actionerrors();
String?userZh?=?(String)session.getAttribute(“current_user“);
if(?userZh?==?null?)?{
errors.add(“fail_1“new?ActionMessage(“add.remind.action.a“));
saveErrors(requesterrors);
return?(map.findForward(“addremindfail“));
}else?{
userZh?=?new?String(userZh.getBytes(“ISO-8859-1“)“GB2312“);
}
String?theme?=?null;
theme?=?(String)((RemindBean)form).getTheme();
if(?theme?==?null?)?{
theme?=?““;
}
theme?=?new?String(theme.getBytes(“ISO-8859-1“)“GB2312“);
if(?theme.equals(““))?{
theme?=?“*“;
}
String?content?=?null?tmp?=?null;
content?=?(String)((RemindBean)form).getContent();
if(?content?==?null?)?{
content?=?““;
}
content?=?new?String(content.getBytes(“ISO-8859-1“)“GB2312“);
if(?content.equals(““))?{
content?=?“*“;
}?else?if(content.length()>100)?{
tmp?=?content.substring(0100);
content?=?tmp;
}
DataStore?ds?=?DataStore.getInstance();
String?sql?=?“insert?ClientRemind(ZHTHEMECONTENTMAKEDATE)?values(‘“?+
??????????userZh+“‘‘“?+
??????????theme+“‘‘“?+
??????????content+“‘CURDATE())“;
ds.beginTransaction();
try?{
ds.execute(sql);
}?catch(Exception?e)?{
ds.ErrorOccur();
ds.commitTransaction();
errors.add(“fail_2“new?ActionMessage(“add.remind.action.b“));
saveErrors(requesterrors);
return?(map.findForward(“addremindfail“));
}
ds.commitTransaction();
request.setAttribute(“view““4“);
return?(map.findForward(“addremindok“));
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1231??2011-06-24?18:41??PersonalPlatform\.classpath
?????文件????????321??2011-06-24?15:35??PersonalPlatform\.myme
?????文件???????1422??2011-04-26?20:11??PersonalPlatform\.project
?????文件????????500??2011-04-26?20:08??PersonalPlatform\.settings\.jsdtscope
?????文件????????330??2011-04-26?20:08??PersonalPlatform\.settings\org.eclipse.jdt.core.prefs
?????文件?????????49??2011-04-26?20:08??PersonalPlatform\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2011-04-26?20:08??PersonalPlatform\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????3??2011-04-25?14:17??PersonalPlatform\sql\admin.sql
?????文件????????689??2011-04-25?14:17??PersonalPlatform\sql\client.sql
?????文件????????566??2011-04-25?14:17??PersonalPlatform\sql\clientfile.sql
?????文件????????529??2011-04-25?14:17??PersonalPlatform\sql\clientfilespace.sql
?????文件????????527??2011-04-25?14:17??PersonalPlatform\sql\clientmessage.sql
?????文件????????670??2006-07-07?09:09??PersonalPlatform\sql\clientremind.sql
?????文件???????2960??2011-05-16?12:16??PersonalPlatform\src\bit\jeffy\action\AddRemindAction.java
?????文件???????2314??2011-05-16?12:16??PersonalPlatform\src\bit\jeffy\action\AdminLogAction.java
?????文件???????1466??2011-04-26?20:09??PersonalPlatform\src\bit\jeffy\action\ChooseAction.java
?????文件???????1256??2011-04-26?20:09??PersonalPlatform\src\bit\jeffy\action\ExitAction.java
?????文件???????3761??2011-05-16?12:15??PersonalPlatform\src\bit\jeffy\action\FileDeleteAction.java
?????文件???????2779??2011-05-16?12:15??PersonalPlatform\src\bit\jeffy\action\FileShareAction.java
?????文件???????5299??2011-05-16?12:16??PersonalPlatform\src\bit\jeffy\action\FileUploadAction.java
?????文件???????2556??2011-05-16?12:17??PersonalPlatform\src\bit\jeffy\action\LogAction.java
?????文件???????1249??2011-04-26?20:09??PersonalPlatform\src\bit\jeffy\action\LogoffAction.java
?????文件???????2238??2011-05-16?12:17??PersonalPlatform\src\bit\jeffy\action\ManageFileAction.java
?????文件???????1067??2011-04-26?20:09??PersonalPlatform\src\bit\jeffy\action\ModifyAction.java
?????文件???????6075??2011-05-16?12:18??PersonalPlatform\src\bit\jeffy\action\ModifySubmitAction.java
?????文件???????7279??2011-05-16?12:19??PersonalPlatform\src\bit\jeffy\action\RegisterAction.java
?????文件???????2664??2011-05-16?12:20??PersonalPlatform\src\bit\jeffy\action\RemindDeleteAction.java
?????文件???????1861??2011-05-16?12:20??PersonalPlatform\src\bit\jeffy\action\RemoveMessageAction.java
?????文件???????2657??2011-05-16?12:21??PersonalPlatform\src\bit\jeffy\action\SendMessageAction.java
?????文件????????803??2011-04-26?20:09??PersonalPlatform\src\bit\jeffy\business\ClientError.java
............此處省略249個文件信息
評論
共有 條評論