package jp.ac.kcska.questionsystem; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; @WebServlet("/DeleteAccountServlet") public class DeleteAccountServlet extends HttpServlet { private static final long serialVersionUID = 1L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html; charset=\"UTF-8\""); response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); String username = request.getParameter("username"); String password = request.getParameter("password"); Connection connect = null; PreparedStatement stmt = null; String DeleteSql = "DELETE * from Mst_user where username=\'"+ username+"\'"; } }