struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject struts git commit: Fixes issues in config-browse plugin
Date Wed, 28 Sep 2016 09:32:48 GMT
Repository: struts
Updated Branches:
  refs/heads/master 9ee5c4e6e -> 50328ffe1


Fixes issues in config-browse plugin


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/50328ffe
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/50328ffe
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/50328ffe

Branch: refs/heads/master
Commit: 50328ffe1a4705386dab9ee2205b33aea44aeab5
Parents: 9ee5c4e
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Wed Sep 28 11:32:14 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed Sep 28 11:32:14 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/struts2/config_browser/ShowBeansAction.java  | 1 +
 .../org/apache/struts2/config_browser/ShowConstantsAction.java   | 1 +
 .../src/main/resources/config-browser/actionNames.ftl            | 2 +-
 .../src/main/resources/config-browser/showConfig.ftl             | 4 ++--
 .../src/main/resources/config-browser/validatorDetails.ftl       | 2 +-
 5 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/50328ffe/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
----------------------------------------------------------------------
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
index debc17c..8ad85c9 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
@@ -50,6 +50,7 @@ public class ShowBeansAction extends ActionNamesAction {
 
     @Inject
     public void setContainer(Container container) {
+        super.setContainer(container);
         bindings = new TreeMap<String, Set<Binding>>();
         bindings.put(ObjectFactory.class.getName(), addBindings(container, ObjectFactory.class,
StrutsConstants.STRUTS_OBJECTFACTORY));
         bindings.put(XWorkConverter.class.getName(), addBindings(container, XWorkConverter.class,
StrutsConstants.STRUTS_XWORKCONVERTER));

http://git-wip-us.apache.org/repos/asf/struts/blob/50328ffe/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
----------------------------------------------------------------------
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
index cf292e0..3b05645 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
@@ -36,6 +36,7 @@ public class ShowConstantsAction extends ActionNamesAction {
 
     @Inject
     public void setContainer(Container container) {
+        super.setContainer(container);
         constants = new HashMap<String, String>();
         for (String key : container.getInstanceNames(String.class)) {
             constants.put(key, container.getInstance(String.class, key));

http://git-wip-us.apache.org/repos/asf/struts/blob/50328ffe/plugins/config-browser/src/main/resources/config-browser/actionNames.ftl
----------------------------------------------------------------------
diff --git a/plugins/config-browser/src/main/resources/config-browser/actionNames.ftl b/plugins/config-browser/src/main/resources/config-browser/actionNames.ftl
index 9721afd..d850028 100644
--- a/plugins/config-browser/src/main/resources/config-browser/actionNames.ftl
+++ b/plugins/config-browser/src/main/resources/config-browser/actionNames.ftl
@@ -22,7 +22,7 @@
 -->
 <#include "tigris-macros.ftl">
 <@startPage pageTitle="Actions in namespace"/>
-<h3>Actions in <#if namespace == ""> default namespace <#else> ${namespace}
</#if></h3>
+<h3>Actions in <#if namespace == ""> default namespace <#else> ${namespace?html}
</#if></h3>
 <table>
 	<tr>
 		<td>

http://git-wip-us.apache.org/repos/asf/struts/blob/50328ffe/plugins/config-browser/src/main/resources/config-browser/showConfig.ftl
----------------------------------------------------------------------
diff --git a/plugins/config-browser/src/main/resources/config-browser/showConfig.ftl b/plugins/config-browser/src/main/resources/config-browser/showConfig.ftl
index 42e0934..d140fca 100644
--- a/plugins/config-browser/src/main/resources/config-browser/showConfig.ftl
+++ b/plugins/config-browser/src/main/resources/config-browser/showConfig.ftl
@@ -42,8 +42,8 @@
 
 <!-- URLTag is faulty -->
 <@s.url var="url" action="showConfig" includeParams="none">
-    <@s.param name="namespace">${namespace}</@s.param>
-    <@s.param name="actionName">${actionName}</@s.param>
+    <@s.param name="namespace">${namespace?html}</@s.param>
+    <@s.param name="actionName">${actionName?html}</@s.param>
 </@s.url>
 <#assign url = url + "&amp;detailView=">
 <!-- Set all to false -->

http://git-wip-us.apache.org/repos/asf/struts/blob/50328ffe/plugins/config-browser/src/main/resources/config-browser/validatorDetails.ftl
----------------------------------------------------------------------
diff --git a/plugins/config-browser/src/main/resources/config-browser/validatorDetails.ftl
b/plugins/config-browser/src/main/resources/config-browser/validatorDetails.ftl
index d890a9d..77f4264 100644
--- a/plugins/config-browser/src/main/resources/config-browser/validatorDetails.ftl
+++ b/plugins/config-browser/src/main/resources/config-browser/validatorDetails.ftl
@@ -25,7 +25,7 @@
 <#call startPage pageTitle="Validator Details"/>
 <table>
 <tr><td>Validated Class:</td><td>${action.stripPackage(clazz)}</td></tr>
-<tr><td>Context:</td><td>${context}</td></tr>
+<tr><td>Context:</td><td>${context?html}</td></tr>
 <tr><td>Validator Number:</td><td>${selected}</td></tr>
 <tr><td>Validator Type:</td><td>${action.stripPackage(selectedValidator.class)}</td></tr>
 </table>


Mime
View raw message