You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2015/07/15 08:23:49 UTC
struts git commit: WW-4527 - Show property class in debug tag
Repository: struts
Updated Branches:
refs/heads/master 9172cf34f -> f85c60ea4
WW-4527 - Show property class in debug tag
Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f85c60ea
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f85c60ea
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f85c60ea
Branch: refs/heads/master
Commit: f85c60ea477530872f7b0ab2d16f16a375cd4ab2
Parents: 9172cf3
Author: Aleksandr Mashchenko <al...@gmail.com>
Authored: Tue Jul 14 22:24:08 2015 +0300
Committer: Aleksandr Mashchenko <al...@gmail.com>
Committed: Tue Jul 14 22:24:08 2015 +0300
----------------------------------------------------------------------
core/src/main/resources/template/simple/debug.ftl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts/blob/f85c60ea/core/src/main/resources/template/simple/debug.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/simple/debug.ftl b/core/src/main/resources/template/simple/debug.ftl
index 17152bf..da40aeb 100644
--- a/core/src/main/resources/template/simple/debug.ftl
+++ b/core/src/main/resources/template/simple/debug.ftl
@@ -51,7 +51,7 @@
<h3>Value Stack Contents</h3>
<table class="debugTable">
- <tr><th>Object</th><th>Property Name</th><th>Property Value</th></tr>
+ <tr><th>Object</th><th>Property Name</th><th>Property Value</th><th>Property Class</th></tr>
<#assign index=1>
<#list parameters.stackValues as stackObject>
@@ -63,6 +63,7 @@
<#if renderRow==true></tr><tr><#else> <#assign renderRow=false> </#if>
<td style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;">${propertyName}</td>
<td style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;"><#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).toString()?html}<#else>null</#if></td>
+ <td style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;"><#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).class?html}<#else>null</#if></td>
</tr>
<#assign index= index + 1>
</#list>
@@ -81,7 +82,7 @@
<#list stack.context.keySet() as contextKey>
<tr style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;">
<td>${contextKey}</td>
- <td><#if stack.context.get(contextKey)??>${struts.toStringSafe(stack.context.get(contextKey))?html}<#else>null</#if></td>
+ <td><#if stack.context.get(contextKey)??>${struts.toStringSafe(stack.context.get(contextKey))?html} (${struts.toStringSafe(stack.context.get(contextKey).class)?html})<#else>null</#if></td>
</tr>
<#assign index= index + 1>
</#list>