zoukankan      html  css  js  c++  java
  • 团队冲刺第五天

    我的计划已经完成一半了,今天的工作是和队友一起测试整合。
    在整合过程中,我发现每个手机的适配都不一样,后续还要改一下。


    package Servlet;

    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;

    import dao.dao;
    import entity.Book;
    import entity.Bookshelf;
    import net.sf.json.JSONObject;

    public class DeleteBookshelfServlet extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setCharacterEncoding("utf-8");
        response.setContentType("text/html; charset=utf-8");
        String username=request.getParameter("username");
        String bookname =request.getParameter("BookName");
        Bookshelf bookshelf =new Bookshelf(bookname,username);
        dao dao =new dao();
        PrintWriter out = response.getWriter();
        JSONObject json=new JSONObject();
        if(dao.deleteshelf(bookshelf)) {
            json.put("result", 1);
            out.print(json);
        }else {
            json.put("result", 0);
            out.print(json);
        }
    }
    
    
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        doGet(request, response);
    }
    

    }

    DeleteBookshelfServlet

  • 相关阅读:
    Linux 清空nohup.out(引用别人的文章)
    Nginx map模块
    Nginx 防盗链 secure_link 模块
    Nginx HTTP框架提供的其它变量
    NC 命令引用了一个高手的文章做收藏
    Nginx HTTP框架提供的请求相关变量
    6 MyISAM和InnoDB
    5.MVCC
    4 乐观锁和悲观锁
    Redis原理
  • 原文地址:https://www.cnblogs.com/xrj-/p/12969532.html
Copyright © 2011-2022 走看看