public void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {

    response.setContentType("text/html;charset=gb18030");
    request.setCharacterEncoding("gb18030");
    int rtypeid = Integer.parseInt(request.getParameter("rtypeid"));
    try {
      if (DAOFactory.getReaderTypeDAOInstance().doDelete(rtypeid)) {
        request.getSession().setAttribute("rtypeid", rtypeid);
        request.getRequestDispatcher("ReaderTypeQueryAllServlet").forward(request, response);
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
  }