protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setCharacterEncoding("UTF-8");
        response.setContentType("text/html;charset=utf-8");

        String method = Util.nullToString(request.getParameter("method"));
        if("viewAllXinWens".equalsIgnoreCase(method)){//for view all xinwen page
            doViewAllXinWen(request, response);
        }else if("editXinWen".equalsIgnoreCase(method)){//for edit xinwen page
            doEditXinWen(request, response, true);
        }else if("updateXinWen".equalsIgnoreCase(method)) { //for update xinwen page
            doUpdateXinWen(request, response);
        }else if("addXinWen".equalsIgnoreCase(method)) {//for add xinwen page
            doAddXinWen(request, response);
        }else if("saveXinWen".equalsIgnoreCase(method)) {//for save xinwen
            doSaveXinWen(request, response);
        }else if("delXinWen".equalsIgnoreCase(method)) {//for add xinwen page
            doDelXinWen(request, response);
        }else{
            doViewAllXinWen(request, response);
        }

    }