NHVIVO-1218 Correct blank page on image upload error by removing overrides to getTemplateName() and getMap() in ExceptionResponseValues.

This commit is contained in:
rjy7 2010-10-22 15:08:09 +00:00
parent 5a7e301711
commit 9b2e654545

View file

@ -133,8 +133,9 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
log.debug("Disabling Freemarker template caching in development build."); log.debug("Disabling Freemarker template caching in development build.");
config.setTemplateUpdateDelay(0); // no template caching in development config.setTemplateUpdateDelay(0); // no template caching in development
} else { } else {
log.debug("Setting Freemarker template cache update delay."); int delay = 60;
config.setTemplateUpdateDelay(60); // in seconds; Freemarker default is 5 log.debug("Setting Freemarker template cache update delay to " + delay + ".");
config.setTemplateUpdateDelay(delay); // in seconds; Freemarker default is 5
} }
// Specify how templates will see the data model. // Specify how templates will see the data model.
@ -841,17 +842,6 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
return cause; return cause;
} }
@Override
public String getTemplateName() {
throw new UnsupportedOperationException(
"This is not a template response.");
}
@Override
public Map<String, Object> getMap() {
throw new IllegalStateException("This is not a template response.");
}
@Override @Override
public String getRedirectUrl() { public String getRedirectUrl() {
throw new UnsupportedOperationException( throw new UnsupportedOperationException(