selvet如何获取表单信息

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        
        // TODO Auto-generated method stub
        response.setContentType("text/html;charset=UTF-8");
        request.setCharacterEncoding("UTF-8");
        Context=request.getParameter("Context");//Contect表单的mame属性,获取表单的内容封装在Context里面
        System.out.print("111111111111111111111"+Context);
        try {
            insertDate();//调用方法ps.setSting(1,Content)往内表里插入Content内容
        } catch (SQLException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
    }
原文地址:https://www.cnblogs.com/cc233/p/6902847.html