public static void outputString ( final HttpServletResponse response , final Object obj ) { try { response . setContentType ( "text/javascript" ) ; response . setCharacterEncoding ( "utf-8" ) ; disableCache ( response ) ; response . getWriter ( ) . write ( obj . toString ( ) ) ; response . getWriter ( ) . flush ( ) ; response . getWriter ( ) . close ( ) ; } catch ( IOException e ) { } }
response simple String