我做一个对数据库进行增删改的页面.发现一个很奇怪的问题,我的数据库在28条记录,没有事,当再住里面添加一条记录,返回记录列表页面,发生错误,javax.servlet.ServletException: Input/output error: java.io.IOException: Error: JSP Buffer overflow
不得其解,请指教!

解决方案 »

  1.   

    你应该进行String  操作,或者用了缓冲。
      

  2.   

    private ActionForward Add(ActionMapping mapping, ActionForm form,
                HttpServletRequest request, HttpServletResponse response)
                throws Exception {
            ActionForward myforward = null;
            Os_TypeData os_typedata = new Os_TypeData();
            String os_typeName = request.getParameter("os_typeName");
            System.out.println(os_typeName);
            os_typeName = new String(os_typeName.getBytes("ISO-8859-1"), "GB2312");
            os_typedata.setNAME(os_typeName);
            Os_TypeDAO.AddOs_Type(os_typedata);
            myforward = List(mapping, form, request, response);
            return myforward;
        }