1. opensymphony
  2. webwork

Commits

matthew  committed f3ded09

Issue number: WW-993

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@1938573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 01afe71
  • Branches master

Comments (0)

Files changed (1)

File src/java/config-browser/showConfig.ftl

View file
  • Ignore whitespace
 <#assign url = url + "&amp;detailView=">
 <!-- Set all to false -->
 <#assign detailsSelected = false>
+<#assign exceptionsSelected = false>
 <#assign interceptorsSelected = false>
 <#assign propertiesSelected = false>
 <#assign validatorsSelected = false>
 
 <#if detailView == "results">
 	<#assign detailsSelected = true>
+<#elseif detailView == "exceptions">
+	<#assign exceptionsSelected = true>
 <#elseif detailView == "interceptors">
 	<#assign interceptorsSelected = true>
 <#elseif detailView == "properties">
 
 <@startTabs/>
 	<#call tab name="Results" url="${url}results" isSelected="${detailsSelected?string}"/>
+	<#call tab name="Exception Mappings" url="${url}exceptions" isSelected="${exceptionsSelected?string}"/>
 	<#call tab name="Interceptors" url="${url}interceptors" isSelected="${interceptorsSelected?string}"/>
 	<#call tab name="Properties" url="${url}properties" isSelected="${propertiesSelected?string}"/>
 	<#call tab name="Validators" url="${url}validators" isSelected="${validatorsSelected?string}"/>
     	</#list>
     </table>
     
+<#elseif exceptionsSelected>	<!-- Action exception mappings -->
+    <table width="100%">
+        <tr><th>Name</th><th>Exception Class Name</th><th>Result</th><th>Parameters</th></tr>
+        <#list config.exceptionMappings as e>
+        	<tr <#if e_index%2 gt 0>class="b"<#else>class="a"</#if>>
+    			<td>${e.name}</td>
+    			<td>${e.exceptionClassName}</td>
+    			<td>${e.result}</td>
+    		    <td>
+    		        <#list e.params.keySet() as p>
+    			        ${p} = ${e.params[p]}<br>
+    		        </#list>
+    		    </td>
+    		</tr>
+    	</#list>
+    </table>
+
 <#elseif interceptorsSelected>	<!-- Action interceptors -->
     <table width="100%">
         <tr><th>Name</th><th>Type</th></tr>