-
大小: 8.15MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-10-10
- 语言: Java
- 标签:
资源简介
servlet+jsp+oracle简单的增删改查及导出示例,下载后解压即可查看
代码片段和文件信息
/*
* To change this license header choose License Headers in Project Properties.
* To change this template file choose Tools | Templates
* and open the template in the editor.
*/
package com.test.action;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @author hykj_gdb
*/
public class ExcelServlet extends HttpServlet {
/**
* Processes requests for both HTTP GET
and POST
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
response.setContentType(“text/html;charset=UTF-8“);
try (PrintWriter out = response.getWriter()) {
/* TODO output your page here. You may use following sample code. */
out.println(““);
out.println(““);
out.println(““);
out.println(“tle>Servlet ExcelServlet tle>“);
out.println(““);
out.println(““);
out.println(“Servlet ExcelServlet at “ + request.getContextPath() + “
“);
out.println(““);
out.println(““);
}
}
//
/**
* Handles the HTTP GET
method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
processRequest(request response);
}
/**
* Handles the HTTP POST
method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
processRequest(request response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return “Short description“;
}//
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 174360 2018-03-02 09:12 WebApplication3\build\web\img\1.jpg
文件 824 2018-03-02 09:38 WebApplication3\build\web\index.html
文件 4240 2018-02-28 17:36 WebApplication3\build\web\index.jsp
文件 125506 2018-03-01 10:26 WebApplication3\build\web\jquery.js
文件 96 2018-02-27 11:45 WebApplication3\build\web\me
文件 25 2018-02-27 11:45 WebApplication3\build\web\me
文件 3787 2018-03-02 09:50 WebApplication3\build\web\news.jsp
文件 4751 2018-02-28 18:04 WebApplication3\build\web\register.jsp
文件 0 2018-02-27 11:45 WebApplication3\build\web\WEB-INF\classes\.netbeans_automatic_build
文件 0 2018-02-27 11:45 WebApplication3\build\web\WEB-INF\classes\.netbeans_update_resources
文件 2245 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\ExcelServlet.class
文件 2047 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\GServlet.class
文件 2075 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\NewServlet.class
文件 2640 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\OrederServlet.class
文件 3665 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\PServlet.class
文件 3796 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\RegisterServlet.class
文件 2324 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\action\UServlet.class
文件 6684 2018-03-01 17:34 WebApplication3\build\web\WEB-INF\classes\com\test\dao\impl\NewsDaoImpl.class
文件 488 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\dao\NewsDao.class
文件 4063 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\entity\News.class
文件 943 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\service\impl\NewsServiceImpl.class
文件 322 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\service\NewsService.class
文件 2222 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\util\DBUtil.class
文件 22 2018-02-27 11:45 WebApplication3\build\web\WEB-INF\classes\com\test\util\DBUtil.rs
文件 3643 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\util\ExcelFileGenerator.class
文件 762 2018-03-01 14:42 WebApplication3\build\web\WEB-INF\classes\com\test\util\StringUUID.class
文件 186 2018-03-01 10:57 WebApplication3\build\web\WEB-INF\lib\annotations-api.jar
文件 186 2018-03-01 10:57 WebApplication3\build\web\WEB-INF\lib\catalina-ant.jar
文件 186 2018-03-01 10:57 WebApplication3\build\web\WEB-INF\lib\catalina-ha.jar
文件 186 2018-03-01 10:57 WebApplication3\build\web\WEB-INF\lib\catalina-tribes.jar
............此处省略151个文件信息
评论
共有 条评论