-
大小:文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-11
- 語言: Java
- 標(biāo)簽:
資源簡介

代碼片段和文件信息
package?com.action;
/**
?*??
?*?
?*/
import?java.io.IOException;
import?java.text.SimpleDateFormat;
import?java.util.Calendar;
import?javax.servlet.ServletConfig;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;
import?com.bean.ComBean;?
import?com.bean.SystemBean;
import?com.util.Constant;
import?com.util.Filter;
import?com.util.SmartFile;
import?com.util.SmartUpload;
public?class?NewsAction?extends?HttpServlet?{
private?ServletConfig?config;
/**
?*?Constructor?of?the?object.
?*/
public?NewsAction()?{
super();
}
final?public?void?init(ServletConfig?config)?throws?ServletException
????{
????????this.config?=?config;??
????}
????final?public?ServletConfig?getServletConfig()
????{
????????return?config;
????}
/**
?*?Destruction?of?the?servlet.?
?*/
public?void?destroy()?{
super.destroy();?//?Just?puts?“destroy“?string?in?log
//?Put?your?code?here
}
/**
?*?The?doGet?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?get.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doGet(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
doPost(requestresponse);
}
/**
?*?The?doPost?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?post.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doPost(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
request.setCharacterEncoding(Constant.CHARACTERENCODING);
response.setContentType(Constant.CONTENTTYPE);
String?sysdir?=?new?SystemBean().getDir();
HttpSession?session?=?request.getSession();
?String?method?=?null;?
?SmartUpload?mySmartUpload?=?new?SmartUpload();//init
?int?count?=?0;
?try{String?date=new?SimpleDateFormat(“yyyy-MM-dd?HH:mm:ss“).format(Calendar.getInstance().getTime());
?mySmartUpload.initialize(configrequestresponse);
?????????????mySmartUpload.upload();?
?????????????ComBean?cb=new?ComBean();
?????????????method?=?mySmartUpload.getRequest().getParameter(“method“).trim();
????????????if(method.equals(“addgd“)){
// String?bh?=?““;String?wz=““; String?hm=““;?String?xm=““;?String?pp=““;?String?ys=““;?String?pic=““;?String?dz=““;?String?fs=““; ???????????? ?
???? String?bh=mySmartUplo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1809534??2012-05-22?12:52??591JSP+MYSQL教師工作量考核系統(tǒng)\JSP教師工作量考核系統(tǒng)演示錄像.exe
?????文件????????872??2012-07-22?21:01??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\.classpath
?????文件????????282??2012-07-22?21:00??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\.myme
?????文件???????1221??2012-05-07?20:33??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\.project
?????文件??????10498??2012-05-07?20:31??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\action\NewsAction.java
?????文件???????4538??2012-05-07?20:31??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\bean\ComBean.java
?????文件????????533??2012-05-07?20:31??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\util\Constant.java
?????文件???????2581??2017-03-22?11:10??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\util\DBO.java
?????文件????????650??2012-05-07?20:31??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\util\Filter.java
?????文件????????836??2012-05-07?20:31??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\src\com\util\Log.java
?????文件????????577??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\down.jsp
?????文件????????642??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????995??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件???????4162??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件???????3319??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件??????10889??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件???????6221??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????876??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件???????5351??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????315??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????179??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件??????20734??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件??????26508??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件???????3143??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????835??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????168??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件?????????85??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件????????835??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件?????????57??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
?????文件?????????63??2012-05-07?20:32??591JSP+MYSQL教師工作量考核系統(tǒng)\程序\gzl\WebRoot\if
............此處省略134個文件信息
評論
共有 條評論