×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Karthick Bala
Added: Jul 25, 2014 10:13 AM
Views: 8
Tags: no tags
  1.      public static void writeErrorResponse(HttpServletResponse response,int statusCode,String msg) throws Exception{
  2.            response.setStatus(statusCode);
  3.            response.getWriter().print(msg);//NO OUTPUTENCODING
  4.     }