mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 13:47:57 +01:00
Remove Tiles !!!!
This commit is contained in:
parent
1340fff68a
commit
e55e7e8867
@ -19,22 +19,14 @@ public class AppConfig {
|
||||
|
||||
@Bean
|
||||
HandlerExceptionResolver errorHandler() {
|
||||
final SimpleMappingExceptionResolver result =
|
||||
new SimpleMappingExceptionResolver();
|
||||
|
||||
//exception to view name mapping
|
||||
final Properties p = new Properties();
|
||||
p.setProperty(MapNotPublicSecurityException.class.getName(), "reactInclude");
|
||||
p.setProperty(AccessDeniedSecurityException.class.getName(), "reactInclude");
|
||||
result.setExceptionMappings(p);
|
||||
final SimpleMappingExceptionResolver result = new SimpleMappingExceptionResolver();
|
||||
|
||||
//mapping status code with view response.
|
||||
result.addStatusCode("reactInclude", 403);
|
||||
|
||||
//setting default error view
|
||||
result.setDefaultErrorView("errorTemplate");
|
||||
result.setDefaultErrorView("reactInclude");
|
||||
result.setDefaultStatusCode(500);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN" "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
|
||||
|
||||
<tiles-definitions>
|
||||
|
||||
<!-- Template Declaration -->
|
||||
<definition name="errorTemplate" template="/jsp/errorTemplate.jsp">
|
||||
<put-attribute name="title" value="" type="string"/>
|
||||
<put-attribute name="details" value="" type="string"/>
|
||||
</definition>
|
||||
|
||||
<!-- Error Pages -->
|
||||
<definition name="unexpectedError" extends="errorTemplate">
|
||||
<put-attribute name="title" value="UNEXPECTED_ERROR"/>
|
||||
<put-attribute name="details" value="UNEXPECTED_ERROR_DETAILS"/>
|
||||
<put-attribute name="logError" value="true"/>
|
||||
</definition>
|
||||
|
||||
<definition name="securityError" extends="errorTemplate">
|
||||
<put-attribute name="title" value="NO_ENOUGH_PERMISSIONS"/>
|
||||
<put-attribute name="details" value="NO_ENOUGH_PERMISSIONS_DETAILS"/>
|
||||
</definition>
|
||||
|
||||
</tiles-definitions>
|
Loading…
Reference in New Issue
Block a user