private static void responseError(HttpServletRequest request,
HttpServletResponse response, String errmsg)
throws IOException {
//Don't use sendError because Browser cannot handle UTF-8
AuWriter out = AuWriters.newInstance().open(request, response, 0);
out.write(new AuAlert(errmsg));
out.close(request, response);
}