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 2017/05/12 14:47:42 UTC

[1/5] struts-examples git commit: Defines an action to show how number conversion works

Repository: struts-examples
Updated Branches:
  refs/heads/master 04d6d8388 -> d07e95420


Defines an action to show how number conversion works


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

Branch: refs/heads/master
Commit: d07e954204fe39a89c40dc58aec86a29ad677c70
Parents: 9dcfa1b
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri May 12 16:31:11 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri May 12 16:47:29 2017 +0200

----------------------------------------------------------------------
 .../org/apache/struts/example/NumberAction.java | 49 ++++++++++++++++
 type-conversion/src/main/resources/example.xml  |  4 ++
 .../apache/struts/example/package.properties    |  1 +
 .../apache/struts/example/package_de.properties |  1 +
 .../apache/struts/example/package_pl.properties |  1 +
 type-conversion/src/main/resources/struts.xml   |  1 +
 .../src/main/webapp/WEB-INF/example/Number.jsp  | 62 ++++++++++++++++++++
 .../src/main/webapp/WEB-INF/example/Theme.jsp   |  7 ++-
 8 files changed, 124 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java b/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java
new file mode 100644
index 0000000..5b2e0e0
--- /dev/null
+++ b/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java
@@ -0,0 +1,49 @@
+package org.apache.struts.example;
+
+import com.opensymphony.xwork2.ActionSupport;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+import java.math.BigDecimal;
+
+public class NumberAction extends ActionSupport {
+
+    private static final Logger LOG = LogManager.getLogger(NumberAction.class);
+
+    private BigDecimal bigDecimal = BigDecimal.valueOf(1.01);
+    private Double bigDouble = 1.01;
+    private double primitiveDouble = 1.01;
+
+    @Override
+    public String execute() throws Exception {
+        LOG.info("BigDecimal value: {}", bigDecimal);
+        LOG.info("Double value: {}", bigDouble);
+        LOG.info("double value: {}", primitiveDouble);
+
+        return INPUT;
+    }
+
+    public BigDecimal getBigDecimal() {
+        return bigDecimal;
+    }
+
+    public void setBigDecimal(BigDecimal bigDecimal) {
+        this.bigDecimal = bigDecimal;
+    }
+
+    public Double getBigDouble() {
+        return bigDouble;
+    }
+
+    public void setBigDouble(Double bigDouble) {
+        this.bigDouble = bigDouble;
+    }
+
+    public double getPrimitiveDouble() {
+        return primitiveDouble;
+    }
+
+    public void setPrimitiveDouble(double primitiveDouble) {
+        this.primitiveDouble = primitiveDouble;
+    }
+}

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/resources/example.xml
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/example.xml b/type-conversion/src/main/resources/example.xml
index 924b431..b12b0a3 100644
--- a/type-conversion/src/main/resources/example.xml
+++ b/type-conversion/src/main/resources/example.xml
@@ -15,5 +15,9 @@
             <result>/WEB-INF/example/Theme.jsp</result>
         </action>
 
+        <action name="Number" class="org.apache.struts.example.NumberAction">
+            <result name="input">/WEB-INF/example/Number.jsp</result>
+        </action>
+
     </package>
 </struts>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/resources/org/apache/struts/example/package.properties
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/org/apache/struts/example/package.properties b/type-conversion/src/main/resources/org/apache/struts/example/package.properties
new file mode 100644
index 0000000..581936c
--- /dev/null
+++ b/type-conversion/src/main/resources/org/apache/struts/example/package.properties
@@ -0,0 +1 @@
+label=Locale (EN)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/resources/org/apache/struts/example/package_de.properties
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/org/apache/struts/example/package_de.properties b/type-conversion/src/main/resources/org/apache/struts/example/package_de.properties
new file mode 100644
index 0000000..7e18611
--- /dev/null
+++ b/type-conversion/src/main/resources/org/apache/struts/example/package_de.properties
@@ -0,0 +1 @@
+label=Gebietsschema (DE)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/resources/org/apache/struts/example/package_pl.properties
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/org/apache/struts/example/package_pl.properties b/type-conversion/src/main/resources/org/apache/struts/example/package_pl.properties
new file mode 100644
index 0000000..bd5e8b5
--- /dev/null
+++ b/type-conversion/src/main/resources/org/apache/struts/example/package_pl.properties
@@ -0,0 +1 @@
+label=J\u0119zyk (PL)

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/struts.xml b/type-conversion/src/main/resources/struts.xml
index 6f25e26..2cbb2e0 100644
--- a/type-conversion/src/main/resources/struts.xml
+++ b/type-conversion/src/main/resources/struts.xml
@@ -5,6 +5,7 @@
 <struts>
     <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
     <constant name="struts.devMode" value="true"/>
+    <constant name="struts.i18n.reload" value="true"/>
 
     <include file="example.xml"/>
 

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/webapp/WEB-INF/example/Number.jsp
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/webapp/WEB-INF/example/Number.jsp b/type-conversion/src/main/webapp/WEB-INF/example/Number.jsp
new file mode 100644
index 0000000..840140b
--- /dev/null
+++ b/type-conversion/src/main/webapp/WEB-INF/example/Number.jsp
@@ -0,0 +1,62 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<html>
+<head>
+  <title>Number conversion</title>
+</head>
+
+<body>
+
+<s:url var="themeAction" action="Theme"/>
+<s:a value="%{themeAction}">Theme conversion</s:a>
+
+<s:url var="switchToEN" action="Number">
+  <s:param name="request_locale">en</s:param>
+</s:url>
+<s:a value="%{switchToEN}">Switch to EN</s:a>
+
+<s:url var="switchToPL" action="Number">
+  <s:param name="request_locale">pl</s:param>
+</s:url>
+<s:a value="%{switchToPL}">Switch to PL</s:a>
+
+<s:url var="switchToDE" action="Number">
+  <s:param name="request_locale">de</s:param>
+</s:url>
+<s:a value="%{switchToDE}">Switch to DE</s:a>
+
+<s:form method="POST" action="Number">
+  <table>
+    <tr>
+      <td>BigDecimal</td>
+      <td><s:textfield name="bigDecimal"/></td>
+    </tr>
+    <tr>
+      <td>Double</td>
+      <td><s:textfield name="bigDouble"/></td>
+    </tr>
+    <tr>
+      <td>double</td>
+      <td><s:textfield name="primitiveDouble"/></td>
+    </tr>
+    <tr>
+      <td colspan="2"><s:submit/></td>
+    </tr>
+  </table>
+</s:form>
+
+<pre>
+  <s:text name="label"/>: <s:property value="locale"/>
+</pre>
+<pre>
+  BigDecimal: <s:property value="bigDecimal"/>
+</pre>
+<pre>
+  Double: <s:property value="bigDouble"/>
+</pre>
+<pre>
+  double: <s:property value="primitiveDouble"/>
+</pre>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/d07e9542/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp b/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
index c684819..3fd6ba2 100644
--- a/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
+++ b/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
@@ -1,12 +1,15 @@
 <%@ page contentType="text/html; charset=UTF-8" %>
 <%@ taglib prefix="s" uri="/struts-tags" %>
-<html>
+<!DOCTYPE html>
+<html lang="en">
 <head>
   <title>Theme selector</title>
 </head>
 
 <body>
-<h2><s:property value="message"/></h2>
+
+<s:url var="numberAction" action="Number"/>
+<s:a value="%{numberAction}">Number conversion</s:a>
 
 <s:form method="POST" action="design" theme="simple">
   <table>


[4/5] struts-examples git commit: Updates DTD to 2.5

Posted by lu...@apache.org.
Updates DTD to 2.5


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

Branch: refs/heads/master
Commit: 9dcfa1b91d074f2aae3012f66d9133e22859c3e7
Parents: b028aac
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri May 12 09:11:51 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri May 12 16:47:29 2017 +0200

----------------------------------------------------------------------
 type-conversion/src/main/resources/example.xml | 4 ++--
 type-conversion/src/main/resources/struts.xml  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/9dcfa1b9/type-conversion/src/main/resources/example.xml
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/example.xml b/type-conversion/src/main/resources/example.xml
index 0cf1640..924b431 100644
--- a/type-conversion/src/main/resources/example.xml
+++ b/type-conversion/src/main/resources/example.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE struts PUBLIC
-        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
-        "http://struts.apache.org/dtds/struts-2.3.dtd">
+        "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
+        "http://struts.apache.org/dtds/struts-2.5.dtd">
 <!-- 
   - This file is included by the struts.xml file as an example
   - of how to break up the configuration file into multiple files.

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/9dcfa1b9/type-conversion/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/struts.xml b/type-conversion/src/main/resources/struts.xml
index c2aff5b..6f25e26 100644
--- a/type-conversion/src/main/resources/struts.xml
+++ b/type-conversion/src/main/resources/struts.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE struts PUBLIC
-        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
-        "http://struts.apache.org/dtds/struts-2.3.dtd">
+        "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
+        "http://struts.apache.org/dtds/struts-2.5.dtd">
 <struts>
     <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
     <constant name="struts.devMode" value="true"/>


[2/5] struts-examples git commit: Displays selected object

Posted by lu...@apache.org.
Displays selected object


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

Branch: refs/heads/master
Commit: b028aacf7600fd75c2e05c05fb37837091d84f77
Parents: 4b04a07
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri May 12 09:07:11 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri May 12 16:47:29 2017 +0200

----------------------------------------------------------------------
 type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/b028aacf/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp b/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
index b6b59ef..c684819 100644
--- a/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
+++ b/type-conversion/src/main/webapp/WEB-INF/example/Theme.jsp
@@ -18,5 +18,9 @@
   </table>
 </s:form>
 
+<pre>
+  <s:property value="selectedTheme.toString"/>
+</pre>
+
 </body>
 </html>


[5/5] struts-examples git commit: Switches to Log4j2 and uses more convenient name for action

Posted by lu...@apache.org.
Switches to Log4j2 and uses more convenient name for action


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

Branch: refs/heads/master
Commit: 4b04a0731890583391610dac4bb01673d2972b45
Parents: a0e01e9
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri May 12 09:07:00 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri May 12 16:47:29 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/struts/example/Theme.java   | 56 --------------------
 .../org/apache/struts/example/ThemeAction.java  | 56 ++++++++++++++++++++
 .../example/ThemeDescriptorConverter.java       |  6 +--
 .../java/org/apache/struts/model/Themes.java    |  2 +-
 type-conversion/src/main/resources/example.xml  |  2 +-
 5 files changed, 61 insertions(+), 61 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/4b04a073/type-conversion/src/main/java/org/apache/struts/example/Theme.java
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/java/org/apache/struts/example/Theme.java b/type-conversion/src/main/java/org/apache/struts/example/Theme.java
deleted file mode 100644
index 198830f..0000000
--- a/type-conversion/src/main/java/org/apache/struts/example/Theme.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * $Id$
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.struts.example;
-
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.util.logging.Logger;
-import com.opensymphony.xwork2.util.logging.LoggerFactory;
-import org.apache.struts.model.ThemeDescriptor;
-import org.apache.struts.model.Themes;
-
-import java.util.Map;
-
-public class Theme extends ActionSupport {
-
-    private static final Logger LOG = LoggerFactory.getLogger(Theme.class);
-
-    private Map<String, ThemeDescriptor> themes = Themes.list();
-    private ThemeDescriptor selectedTheme = Themes.get("simple");
-
-    public String execute() throws Exception {
-        return SUCCESS;
-    }
-
-    public Map<String, ThemeDescriptor> getThemes() {
-        return themes;
-    }
-
-    public ThemeDescriptor getSelectedTheme() {
-        LOG.info("Existing theme: #0", String.valueOf(selectedTheme));
-        return selectedTheme;
-    }
-
-    public void setSelectedTheme(ThemeDescriptor selectedTheme) {
-        LOG.info("Selected theme: #0", String.valueOf(selectedTheme));
-        this.selectedTheme = selectedTheme;
-    }
-}

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/4b04a073/type-conversion/src/main/java/org/apache/struts/example/ThemeAction.java
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/java/org/apache/struts/example/ThemeAction.java b/type-conversion/src/main/java/org/apache/struts/example/ThemeAction.java
new file mode 100644
index 0000000..c3c9bfe
--- /dev/null
+++ b/type-conversion/src/main/java/org/apache/struts/example/ThemeAction.java
@@ -0,0 +1,56 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.struts.example;
+
+import com.opensymphony.xwork2.ActionSupport;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.apache.struts.model.ThemeDescriptor;
+import org.apache.struts.model.Themes;
+
+import java.util.Map;
+
+public class ThemeAction extends ActionSupport {
+
+    private static final Logger LOG = LogManager.getLogger(ThemeAction.class);
+
+    private Map<String, ThemeDescriptor> themes = Themes.list();
+    private ThemeDescriptor selectedTheme = Themes.get("simple");
+
+    public String execute() throws Exception {
+        return SUCCESS;
+    }
+
+    public Map<String, ThemeDescriptor> getThemes() {
+        return themes;
+    }
+
+    public ThemeDescriptor getSelectedTheme() {
+        LOG.info("Existing theme: #0", String.valueOf(selectedTheme));
+        return selectedTheme;
+    }
+
+    public void setSelectedTheme(ThemeDescriptor selectedTheme) {
+        LOG.info("Selected theme: #0", String.valueOf(selectedTheme));
+        this.selectedTheme = selectedTheme;
+    }
+}

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/4b04a073/type-conversion/src/main/java/org/apache/struts/example/ThemeDescriptorConverter.java
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/java/org/apache/struts/example/ThemeDescriptorConverter.java b/type-conversion/src/main/java/org/apache/struts/example/ThemeDescriptorConverter.java
index 78fcbb4..388495f 100644
--- a/type-conversion/src/main/java/org/apache/struts/example/ThemeDescriptorConverter.java
+++ b/type-conversion/src/main/java/org/apache/struts/example/ThemeDescriptorConverter.java
@@ -1,8 +1,8 @@
 package org.apache.struts.example;
 
 import com.opensymphony.xwork2.conversion.TypeConversionException;
-import com.opensymphony.xwork2.util.logging.Logger;
-import com.opensymphony.xwork2.util.logging.LoggerFactory;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
 import org.apache.struts.model.ThemeDescriptor;
 import org.apache.struts.model.Themes;
 import org.apache.struts2.util.StrutsTypeConverter;
@@ -11,7 +11,7 @@ import java.util.Map;
 
 public class ThemeDescriptorConverter extends StrutsTypeConverter {
 
-    private static final Logger LOG = LoggerFactory.getLogger(ThemeDescriptorConverter.class);
+    private static final Logger LOG = LogManager.getLogger(ThemeDescriptorConverter.class);
 
     @SuppressWarnings("rawtypes")
     @Override

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/4b04a073/type-conversion/src/main/java/org/apache/struts/model/Themes.java
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/java/org/apache/struts/model/Themes.java b/type-conversion/src/main/java/org/apache/struts/model/Themes.java
index 84cbefa..28d08af 100644
--- a/type-conversion/src/main/java/org/apache/struts/model/Themes.java
+++ b/type-conversion/src/main/java/org/apache/struts/model/Themes.java
@@ -9,7 +9,7 @@ public class Themes {
     private static Map<String, ThemeDescriptor> themes;
 
     static {
-        themes = new HashMap<String, ThemeDescriptor>();
+        themes = new HashMap<>();
         themes.put("simple", new ThemeDescriptor("simple", "Simple Theme", "themes/simple"));
         themes.put("extended", new ThemeDescriptor("extended", "Extended Theme", "themes/extended"));
     }

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/4b04a073/type-conversion/src/main/resources/example.xml
----------------------------------------------------------------------
diff --git a/type-conversion/src/main/resources/example.xml b/type-conversion/src/main/resources/example.xml
index f255867..0cf1640 100644
--- a/type-conversion/src/main/resources/example.xml
+++ b/type-conversion/src/main/resources/example.xml
@@ -11,7 +11,7 @@
 
         <default-action-ref name="Theme" />
 
-        <action name="Theme" class="org.apache.struts.example.Theme">
+        <action name="Theme" class="org.apache.struts.example.ThemeAction">
             <result>/WEB-INF/example/Theme.jsp</result>
         </action>
 


[3/5] struts-examples git commit: Uses Log4j2

Posted by lu...@apache.org.
Uses Log4j2


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

Branch: refs/heads/master
Commit: a0e01e94d557a6efd6bdbbbe2303c5d64914fa9d
Parents: 04d6d83
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri May 12 09:06:01 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri May 12 16:47:29 2017 +0200

----------------------------------------------------------------------
 type-conversion/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/a0e01e94/type-conversion/pom.xml
----------------------------------------------------------------------
diff --git a/type-conversion/pom.xml b/type-conversion/pom.xml
index 7b862ee..72b1b69 100644
--- a/type-conversion/pom.xml
+++ b/type-conversion/pom.xml
@@ -20,6 +20,12 @@
   <dependencies>
 
     <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-core</artifactId>
+      <version>${log4j2.version}</version>
+    </dependency>
+
+    <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
       <version>2.4</version>