You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by gi...@apache.org on 2022/03/04 11:13:01 UTC

[struts-site] branch asf-site updated: Automatic Site Publish by Buildbot

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 4a7855f  Automatic Site Publish by Buildbot
4a7855f is described below

commit 4a7855f5f81501f963e08769e961d39d828cfa56
Author: buildbot <us...@infra.apache.org>
AuthorDate: Fri Mar 4 11:13:00 2022 +0000

    Automatic Site Publish by Buildbot
---
 output/core-developers/default-properties.html         |  6 ++++++
 output/core-developers/interceptors.html               |  5 ++++-
 output/core-developers/struts-default-xml.html         |  5 ++++-
 output/core-developers/type-conversion-annotation.html |  4 ++--
 output/core-developers/type-conversion.html            | 11 ++++++-----
 5 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/output/core-developers/default-properties.html b/output/core-developers/default-properties.html
index 50f59a8..dc68dfc 100644
--- a/output/core-developers/default-properties.html
+++ b/output/core-developers/default-properties.html
@@ -387,6 +387,12 @@ struts.handle.exception=true
 ### NOTE: The sample line below is *INTENTIONALLY* commented out, as this feature is disabled by default.
 # struts.ognl.expressionMaxLength=256
 
+### Defines which named instance of DateFormatter to use, there are two instances:
+### - simpleDateFormatter (based on SimpleDateFormat)
+### - dateTimeFormatter (based on Java 8 Date/Time API)
+### These formatters are using a slightly different patterns, please check JavaDocs of both and more details is in WW-5016
+struts.date.formatter=dateTimeFormatter
+
 ### END SNIPPET: complete_file</code></pre></figure>
 
 
diff --git a/output/core-developers/interceptors.html b/output/core-developers/interceptors.html
index 214bd40..55db706 100644
--- a/output/core-developers/interceptors.html
+++ b/output/core-developers/interceptors.html
@@ -442,7 +442,7 @@ than reiterate the same list of Interceptors, we can bundle these Interceptors t
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"com.opensymphony.xwork2.UnknownHandlerManager"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.DefaultUnknownHandlerManager"</span> <span class="na">name=</span><span class="s">"struts"</span> <span class="nt">/&gt;</span>
 
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.dispatcher.DispatcherErrorHandler"</span> <span class="na">name=</span><span class="s">"struts"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler"</span> <span class="nt">/&gt;</span>
-    
+
     <span class="c">&lt;!--  Silly workarounds for OGNL since there is currently no way to flush its internal caches --&gt;</span>
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"ognl.PropertyAccessor"</span> <span class="na">name=</span><span class="s">"java.util.ArrayList"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ognl.accessor.XWorkListPropertyAccessor"</span> <span class="nt">/&gt;</span>
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"ognl.PropertyAccessor"</span> <span class="na">name=</span><span class="s">"java.util.HashSet"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ognl.accessor.XWorkCollectionPropertyAccessor"</span> <span class="nt">/&gt;</span>
@@ -454,6 +454,9 @@ than reiterate the same list of Interceptors, we can bundle these Interceptors t
 
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"com.opensymphony.xwork2.config.providers.ValueSubstitutor"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.config.providers.EnvsValueSubstitutor"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
 
+    <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.components.date.DateFormatter"</span> <span class="na">name=</span><span class="s">"simpleDateFormatter"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.components.date.SimpleDateFormatAdapter"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.components.date.DateFormatter"</span> <span class="na">name=</span><span class="s">"dateTimeFormatter"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.components.date.DateTimeFormatterAdapter"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
+
     <span class="nt">&lt;package</span> <span class="na">name=</span><span class="s">"struts-default"</span> <span class="na">abstract=</span><span class="s">"true"</span><span class="nt">&gt;</span>
         <span class="nt">&lt;result-types&gt;</span>
             <span class="nt">&lt;result-type</span> <span class="na">name=</span><span class="s">"chain"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ActionChainResult"</span><span class="nt">/&gt;</span>
diff --git a/output/core-developers/struts-default-xml.html b/output/core-developers/struts-default-xml.html
index f654149..fdf26eb 100644
--- a/output/core-developers/struts-default-xml.html
+++ b/output/core-developers/struts-default-xml.html
@@ -359,7 +359,7 @@ setting in <a href="default-properties">default.properties</a>.</p>
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"com.opensymphony.xwork2.UnknownHandlerManager"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.DefaultUnknownHandlerManager"</span> <span class="na">name=</span><span class="s">"struts"</span> <span class="nt">/&gt;</span>
 
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.dispatcher.DispatcherErrorHandler"</span> <span class="na">name=</span><span class="s">"struts"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler"</span> <span class="nt">/&gt;</span>
-    
+
     <span class="c">&lt;!--  Silly workarounds for OGNL since there is currently no way to flush its internal caches --&gt;</span>
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"ognl.PropertyAccessor"</span> <span class="na">name=</span><span class="s">"java.util.ArrayList"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ognl.accessor.XWorkListPropertyAccessor"</span> <span class="nt">/&gt;</span>
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"ognl.PropertyAccessor"</span> <span class="na">name=</span><span class="s">"java.util.HashSet"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ognl.accessor.XWorkCollectionPropertyAccessor"</span> <span class="nt">/&gt;</span>
@@ -371,6 +371,9 @@ setting in <a href="default-properties">default.properties</a>.</p>
 
     <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"com.opensymphony.xwork2.config.providers.ValueSubstitutor"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.config.providers.EnvsValueSubstitutor"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
 
+    <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.components.date.DateFormatter"</span> <span class="na">name=</span><span class="s">"simpleDateFormatter"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.components.date.SimpleDateFormatAdapter"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;bean</span> <span class="na">type=</span><span class="s">"org.apache.struts2.components.date.DateFormatter"</span> <span class="na">name=</span><span class="s">"dateTimeFormatter"</span> <span class="na">class=</span><span class="s">"org.apache.struts2.components.date.DateTimeFormatterAdapter"</span> <span class="na">scope=</span><span class="s">"singleton"</span><span class="nt">/&gt;</span>
+
     <span class="nt">&lt;package</span> <span class="na">name=</span><span class="s">"struts-default"</span> <span class="na">abstract=</span><span class="s">"true"</span><span class="nt">&gt;</span>
         <span class="nt">&lt;result-types&gt;</span>
             <span class="nt">&lt;result-type</span> <span class="na">name=</span><span class="s">"chain"</span> <span class="na">class=</span><span class="s">"com.opensymphony.xwork2.ActionChainResult"</span><span class="nt">/&gt;</span>
diff --git a/output/core-developers/type-conversion-annotation.html b/output/core-developers/type-conversion-annotation.html
index 264498b..4c5f863 100644
--- a/output/core-developers/type-conversion-annotation.html
+++ b/output/core-developers/type-conversion-annotation.html
@@ -145,8 +145,8 @@ Set type to: <code class="highlighter-rouge">type = ConversionType.CLASS</code><
   <li>
     <p>Application wide conversion:</p>
 
-    <p>The conversion rules will be assembled within the <code class="highlighter-rouge">xwork-conversion.properties</code> file within the classpath root.
- Set type to: <code class="highlighter-rouge">type = ConversionType.APPLICATION</code></p>
+    <p>The conversion rules will be assembled within the <code class="highlighter-rouge">struts-conversion.properties</code> or <code class="highlighter-rouge">xwork-conversion.properties</code> (deprecated)
+file within the classpath root. Set type to: <code class="highlighter-rouge">type = ConversionType.APPLICATION</code></p>
   </li>
 </ul>
 
diff --git a/output/core-developers/type-conversion.html b/output/core-developers/type-conversion.html
index 90f9a44..ad9c241 100644
--- a/output/core-developers/type-conversion.html
+++ b/output/core-developers/type-conversion.html
@@ -268,7 +268,8 @@ amount=com.acme.converters.MyCustomBigDecimalConverter
 
 <h2 id="applying-a-type-converter-for-an-application">Applying a Type Converter for an application</h2>
 
-<p>Application-wide converters can be specified in a file called <code class="highlighter-rouge">xwork-conversion.properties</code> located in the root of the classpath.</p>
+<p>Application-wide converters can be specified in a file called <code class="highlighter-rouge">struts-conversion.properties</code> or <code class="highlighter-rouge">xwork-conversion.properties</code> (deprecated) 
+located in the root of the classpath.</p>
 
 <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code># syntax: &lt;type&gt; = &lt;converterClassName&gt;
 java.math.BigDecimal = com.acme.MyBigDecimalConverter 
@@ -299,10 +300,10 @@ in FreeMarker) and it will be printed as “3, 22” again. As such, if you subm
 converted back to a Point once again.</p>
 
 <p>In some situations you may wish to apply a type converter globally. This can be done by editing the file
-<code class="highlighter-rouge">xwork-conversion.properties</code> in the root of your class path (typically WEB-INF/classes) and providing a
-property in the form of the class name of the object you wish to convert on the left hand side and the class name of
-the type converter on the right hand side. For example, providing a type converter for all Point objects would mean
-adding the following entry:</p>
+<code class="highlighter-rouge">struts-conversion.properties</code> or <code class="highlighter-rouge">xwork-conversion.properties</code> (deprecated) in the root of your class path 
+(typically WEB-INF/classes) and providing a  property in the form of the class name of the object you wish to convert 
+on the left hand side and the class name of  the type converter on the right hand side. For example, providing a type 
+converter for all Point objects would mean adding the following entry:</p>
 
 <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>com.acme.Point = com.acme.PointConverter
 </code></pre></div></div>