// rendering to complete, while simulating container error handling
try {
// Set up request attributes reflecting the error conditions,
// similar to what is passed to an error handler by the servlet
// container (see Section 9.9.1 of the Servlet Specification)
ApplicationException exception = new ApplicationException(list);
Map map = econtext.getRequestMap();
map.put("javax.servlet.error.status_code", new Integer(HTTP_STATUS)); // Not an HTTP error
map.put("javax.servlet.error.exception_type", ApplicationException.class);
map.put("javax.servlet.error.message", exception.getMessage());
map.put("javax.servlet.error.exception", exception);
StringBuffer sb = new StringBuffer("");
if (econtext.getRequestServletPath() != null) {
sb.append(econtext.getRequestServletPath());
}