String sql = "update jiudian set name='"+name+"',dizhi='"+dizhi+"',info='"+info+"',pic='"+pic+"',tel='"+tel+"',style='"+style+"' where id="+id; System.out.println(sql);
/** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ publicvoidinit()throws ServletException { // Put your code here }
* Constructor of the object. */ publicAddKefangAction(){ super(); }
/** * Destruction of the servlet. <br> */ publicvoiddestroy(){ super.destroy(); // Just puts "destroy" string in log // Put your code here }
/** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ publicvoiddoPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
/** * Destruction of the servlet. <br> */ publicvoiddestroy(){ super.destroy(); // Just puts "destroy" string in log // Put your code here }
/** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ publicvoiddoPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
/** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ publicvoidinit()throws ServletException { // Put your code here }
/** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ publicvoidinit()throws ServletException { // Put your code here }