- try {
- logger.info("user error: " + anException.getMessage());
- SimpleHash modelRoot = new SimpleHash();
- MessageResources messages = MessageResources.getMessageResources("bundles.open");
- modelRoot.put("errorstring",
- new SimpleScalar(
- messages.getMessage(getLocale(aRequest), anException.getMessage(), anException.getParameters())
- ));
- modelRoot.put("date", new SimpleScalar(StringUtil.date2readableDateTime(new GregorianCalendar())));
- HTMLTemplateProcessor.process(aResponse,MirPropertiesConfiguration.instance().getString("ServletModule.OpenIndy.UserErrorTemplate"),
- modelRoot, out, getLocale(aRequest));
- out.close();
- }
- catch (Exception e) {
- logger.error("Error in UserErrorTemplate");
- }
+ ((ServletModuleOpenIndy) ServletModuleOpenIndy.getInstance()).handleUserError(aRequest, aResponse, out, anException);