src/servlet/RecordAddServlet.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import smartupload.SmartFile;
import smartupload.SmartUpload;
import smartupload.SmartUploadException;
import util.Validate;
import bean.InsertUpdateDelBean;
public class RecordAddServlet extends HttpServlet {
private ServletConfig config;
/**
* Constructor of the object.
*/
public RecordAddServlet() {
super();
}
final public void init(ServletConfig config) throws ServletException
{
this.config = config;
}
final public ServletConfig getServletConfig()
{
return config;
}
/**
* Destruction of the servlet. <br>
*/
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Validate vd = new Validate();
String recordnumber = "";
String emp = "";
String name = "";
String content = "";
String path = "";
String str = "";
SmartUpload mySmartUpload = new SmartUpload();//init
mySmartUpload.initialize(config,request,response);
try {
mySmartUpload.upload();
recordnumber = mySmartUpload.getRequest().getParameter("recordnumber").trim();
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
