首页 > 代码库 > 向JSP页面输入信息

向JSP页面输入信息

/**
     * ajax responseTEXT write; 
     * @param request
     * @param response
     * @param str
     */
    public static void response(HttpServletRequest request,HttpServletResponse response,String str) {
        
        response.setContentType("html/text;charset=utf-8");
        try {
            response.getWriter().print(str);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }