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 2013/07/30 21:05:31 UTC
svn commit: r871936 -
/websites/production/struts/content/development/2.x/docs/
Author: lukaszlenart
Date: Tue Jul 30 19:05:31 2013
New Revision: 871936
Log:
Updates draft docs
Added:
websites/production/struts/content/development/2.x/docs/version-notes-2316.html
Modified:
websites/production/struts/content/development/2.x/docs/debugging-struts.html
websites/production/struts/content/development/2.x/docs/exception-handling.html
websites/production/struts/content/development/2.x/docs/exclude-parameters.html
websites/production/struts/content/development/2.x/docs/form-validation-using-xml.html
websites/production/struts/content/development/2.x/docs/form-validation.html
websites/production/struts/content/development/2.x/docs/guides.html
websites/production/struts/content/development/2.x/docs/http-session.html
websites/production/struts/content/development/2.x/docs/interceptors.html
websites/production/struts/content/development/2.x/docs/introducing-interceptors.html
websites/production/struts/content/development/2.x/docs/migration-guide.html
websites/production/struts/content/development/2.x/docs/objectfactory.html
websites/production/struts/content/development/2.x/docs/plugins.html
websites/production/struts/content/development/2.x/docs/preparable-interface.html
websites/production/struts/content/development/2.x/docs/processing-forms.html
websites/production/struts/content/development/2.x/docs/result-types.html
websites/production/struts/content/development/2.x/docs/spring-and-struts-2.html
websites/production/struts/content/development/2.x/docs/struts-2-annotations.html
websites/production/struts/content/development/2.x/docs/struts-2-form-tags.html
websites/production/struts/content/development/2.x/docs/struts-defaultxml.html
websites/production/struts/content/development/2.x/docs/unit-testing.html
websites/production/struts/content/development/2.x/docs/wildcard-method-selection.html
Modified: websites/production/struts/content/development/2.x/docs/debugging-struts.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/debugging-struts.html (original)
+++ websites/production/struts/content/development/2.x/docs/debugging-struts.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/exception-handling.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/exception-handling.html (original)
+++ websites/production/struts/content/development/2.x/docs/exception-handling.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/exclude-parameters.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/exclude-parameters.html (original)
+++ websites/production/struts/content/development/2.x/docs/exclude-parameters.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,8 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushPlain.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -149,7 +151,7 @@ under the License.
<p>Consider this code which creates a form:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Struts 2 Form Tags</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<s:form action="save" method="post">
<s:textfield key="personBean.firstName" />
@@ -170,7 +172,7 @@ under the License.
<p>The s:submit tag will create a submit button with a name of submit. Since the Action class probably doesn't have a setSubmit(String name) method you will see the following log messages (only if Struts development mode is set to true):</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Log Messages</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: plain; gutter: false" type="syntaxhighlighter"><![CDATA[
Dec 31, 2012 3:43:53 PM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
@@ -192,7 +194,6 @@ Unexpected Exception caught setting 'sub
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Setup Interceptor Stack To Exclude submit Parameter</b></div><div class="codeContent panelContent">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
-
<interceptors>
<interceptor-stack name="appDefault">
<interceptor-ref name="defaultStack">
Modified: websites/production/struts/content/development/2.x/docs/form-validation-using-xml.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/form-validation-using-xml.html (original)
+++ websites/production/struts/content/development/2.x/docs/form-validation-using-xml.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/form-validation.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/form-validation.html (original)
+++ websites/production/struts/content/development/2.x/docs/form-validation.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/guides.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/guides.html (original)
+++ websites/production/struts/content/development/2.x/docs/guides.html Tue Jul 30 19:05:31 2013
@@ -215,7 +215,7 @@ under the License.
<h3><a shape="rect" name="Guides-VersionNotes2.3.x"></a>Version Notes 2.3.x</h3>
-<ul><li><a shape="rect" href="version-notes-23151.html" title="Version Notes 2.3.15.1">Version Notes 2.3.15.1</a></li><li><a shape="rect" href="version-notes-2315.html" title="Version Notes 2.3.15">Version Notes 2.3.15</a></li><li><a shape="rect" href="version-notes-23143.html" title="Version Notes 2.3.14.3">Version Notes 2.3.14.3</a></li><li><a shape="rect" href="version-notes-23142.html" title="Version Notes 2.3.14.2">Version Notes 2.3.14.2</a></li><li><a shape="rect" href="version-notes-23141.html" title="Version Notes 2.3.14.1">Version Notes 2.3.14.1</a></li><li><a shape="rect" href="version-notes-2314.html" title="Version Notes 2.3.14">Version Notes 2.3.14</a></li><li><a shape="rect" href="version-notes-23120.html" title="Version Notes 2.3.12.0">Version Notes 2.3.12.0</a></li><li><a shape="rect" href="version-notes-238.html" title="Version Notes 2.3.8">Version Notes 2.3.8</a></li><li><a shape="rect" href="version-notes-237.html" title="Version Notes 2.3.7">Version Notes 2.3.7</
a></li><li><a shape="rect" href="version-notes-2341.html" title="Version Notes 2.3.4.1">Version Notes 2.3.4.1</a></li><li><a shape="rect" href="version-notes-234.html" title="Version Notes 2.3.4">Version Notes 2.3.4</a></li><li><a shape="rect" href="version-notes-233.html" title="Version Notes 2.3.3">Version Notes 2.3.3</a></li><li><a shape="rect" href="version-notes-2312.html" title="Version Notes 2.3.1.2">Version Notes 2.3.1.2</a></li><li><a shape="rect" href="version-notes-2311.html" title="Version Notes 2.3.1.1">Version Notes 2.3.1.1</a></li><li><a shape="rect" href="version-notes-231.html" title="Version Notes 2.3.1">Version Notes 2.3.1</a></li></ul>
+<ul><li><a shape="rect" href="version-notes-2316.html" title="Version Notes 2.3.16">Version Notes 2.3.16</a></li><li><a shape="rect" href="version-notes-23151.html" title="Version Notes 2.3.15.1">Version Notes 2.3.15.1</a></li><li><a shape="rect" href="version-notes-2315.html" title="Version Notes 2.3.15">Version Notes 2.3.15</a></li><li><a shape="rect" href="version-notes-23143.html" title="Version Notes 2.3.14.3">Version Notes 2.3.14.3</a></li><li><a shape="rect" href="version-notes-23142.html" title="Version Notes 2.3.14.2">Version Notes 2.3.14.2</a></li><li><a shape="rect" href="version-notes-23141.html" title="Version Notes 2.3.14.1">Version Notes 2.3.14.1</a></li><li><a shape="rect" href="version-notes-2314.html" title="Version Notes 2.3.14">Version Notes 2.3.14</a></li><li><a shape="rect" href="version-notes-23120.html" title="Version Notes 2.3.12.0">Version Notes 2.3.12.0</a></li><li><a shape="rect" href="version-notes-238.html" title="Version Notes 2.3.8">Version Notes 2.3.
8</a></li><li><a shape="rect" href="version-notes-237.html" title="Version Notes 2.3.7">Version Notes 2.3.7</a></li><li><a shape="rect" href="version-notes-2341.html" title="Version Notes 2.3.4.1">Version Notes 2.3.4.1</a></li><li><a shape="rect" href="version-notes-234.html" title="Version Notes 2.3.4">Version Notes 2.3.4</a></li><li><a shape="rect" href="version-notes-233.html" title="Version Notes 2.3.3">Version Notes 2.3.3</a></li><li><a shape="rect" href="version-notes-2312.html" title="Version Notes 2.3.1.2">Version Notes 2.3.1.2</a></li><li><a shape="rect" href="version-notes-2311.html" title="Version Notes 2.3.1.1">Version Notes 2.3.1.1</a></li><li><a shape="rect" href="version-notes-231.html" title="Version Notes 2.3.1">Version Notes 2.3.1</a></li></ul>
<h3><a shape="rect" name="Guides-VersionNotes2.2.x"></a>Version Notes 2.2.x</h3>
Modified: websites/production/struts/content/development/2.x/docs/http-session.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/http-session.html (original)
+++ websites/production/struts/content/development/2.x/docs/http-session.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -198,7 +199,7 @@ private void increaseHelloCount() {
<p>Struts 2 provides an easy way to get an object stored in the HTTP session from within the view page. In the example application is HelloWorld.jsp with this markup:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>HelloWorld.jsp Get helloCount Value From HTTP Session</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<p>I've said hello to you <s:property value="#session.helloCount" /> times!</p>
Modified: websites/production/struts/content/development/2.x/docs/interceptors.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/interceptors.html (original)
+++ websites/production/struts/content/development/2.x/docs/interceptors.html Tue Jul 30 19:05:31 2013
@@ -240,9 +240,22 @@ under the License.
<struts>
<bean class="com.opensymphony.xwork2.ObjectFactory" name="xwork" />
<bean type="com.opensymphony.xwork2.ObjectFactory" name="struts" class="org.apache.struts2.impl.StrutsObjectFactory" />
+
<bean type="com.opensymphony.xwork2.factory.ResultFactory" name="xwork" class="org.apache.struts2.factory.StrutsResultFactory" />
<bean type="com.opensymphony.xwork2.factory.ResultFactory" name="struts" class="org.apache.struts2.factory.StrutsResultFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ActionFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultActionFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ActionFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultActionFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" />
+ <bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" />
+
<bean type="com.opensymphony.xwork2.FileManager" class="com.opensymphony.xwork2.util.fs.DefaultFileManager" name="system" scope="singleton"/>
<bean type="com.opensymphony.xwork2.FileManagerFactory" class="com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory" name="xwork" scope="singleton"/>
Modified: websites/production/struts/content/development/2.x/docs/introducing-interceptors.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/introducing-interceptors.html (original)
+++ websites/production/struts/content/development/2.x/docs/introducing-interceptors.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -178,8 +179,6 @@ under the License.
<result name="input">register.jsp</result>
</action>
-
-
]]></script>
</div></div>
@@ -226,15 +225,12 @@ Nov 20, 2010 9:55:48 AM com.opensymphony
</interceptor-stack>
- </interceptors>
-
-
+ </interceptors>
<default-interceptor-ref name="appDefault" />
<!-- rest of package omitted -->
-
</package>
]]></script>
Modified: websites/production/struts/content/development/2.x/docs/migration-guide.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/migration-guide.html (original)
+++ websites/production/struts/content/development/2.x/docs/migration-guide.html Tue Jul 30 19:05:31 2013
@@ -130,7 +130,7 @@ under the License.
<h3><a shape="rect" name="MigrationGuide-VersionNotes2.3.x"></a>Version Notes 2.3.x</h3>
-<ul><li><a shape="rect" href="version-notes-23151.html" title="Version Notes 2.3.15.1">Version Notes 2.3.15.1</a></li><li><a shape="rect" href="version-notes-2315.html" title="Version Notes 2.3.15">Version Notes 2.3.15</a></li><li><a shape="rect" href="version-notes-23143.html" title="Version Notes 2.3.14.3">Version Notes 2.3.14.3</a></li><li><a shape="rect" href="version-notes-23142.html" title="Version Notes 2.3.14.2">Version Notes 2.3.14.2</a></li><li><a shape="rect" href="version-notes-23141.html" title="Version Notes 2.3.14.1">Version Notes 2.3.14.1</a></li><li><a shape="rect" href="version-notes-2314.html" title="Version Notes 2.3.14">Version Notes 2.3.14</a></li><li><a shape="rect" href="version-notes-23120.html" title="Version Notes 2.3.12.0">Version Notes 2.3.12.0</a></li><li><a shape="rect" href="version-notes-238.html" title="Version Notes 2.3.8">Version Notes 2.3.8</a></li><li><a shape="rect" href="version-notes-237.html" title="Version Notes 2.3.7">Version Notes 2.3.7</
a></li><li><a shape="rect" href="version-notes-2341.html" title="Version Notes 2.3.4.1">Version Notes 2.3.4.1</a></li><li><a shape="rect" href="version-notes-234.html" title="Version Notes 2.3.4">Version Notes 2.3.4</a></li><li><a shape="rect" href="version-notes-233.html" title="Version Notes 2.3.3">Version Notes 2.3.3</a></li><li><a shape="rect" href="version-notes-2312.html" title="Version Notes 2.3.1.2">Version Notes 2.3.1.2</a></li><li><a shape="rect" href="version-notes-2311.html" title="Version Notes 2.3.1.1">Version Notes 2.3.1.1</a></li><li><a shape="rect" href="version-notes-231.html" title="Version Notes 2.3.1">Version Notes 2.3.1</a></li></ul>
+<ul><li><a shape="rect" href="version-notes-2316.html" title="Version Notes 2.3.16">Version Notes 2.3.16</a></li><li><a shape="rect" href="version-notes-23151.html" title="Version Notes 2.3.15.1">Version Notes 2.3.15.1</a></li><li><a shape="rect" href="version-notes-2315.html" title="Version Notes 2.3.15">Version Notes 2.3.15</a></li><li><a shape="rect" href="version-notes-23143.html" title="Version Notes 2.3.14.3">Version Notes 2.3.14.3</a></li><li><a shape="rect" href="version-notes-23142.html" title="Version Notes 2.3.14.2">Version Notes 2.3.14.2</a></li><li><a shape="rect" href="version-notes-23141.html" title="Version Notes 2.3.14.1">Version Notes 2.3.14.1</a></li><li><a shape="rect" href="version-notes-2314.html" title="Version Notes 2.3.14">Version Notes 2.3.14</a></li><li><a shape="rect" href="version-notes-23120.html" title="Version Notes 2.3.12.0">Version Notes 2.3.12.0</a></li><li><a shape="rect" href="version-notes-238.html" title="Version Notes 2.3.8">Version Notes 2.3.
8</a></li><li><a shape="rect" href="version-notes-237.html" title="Version Notes 2.3.7">Version Notes 2.3.7</a></li><li><a shape="rect" href="version-notes-2341.html" title="Version Notes 2.3.4.1">Version Notes 2.3.4.1</a></li><li><a shape="rect" href="version-notes-234.html" title="Version Notes 2.3.4">Version Notes 2.3.4</a></li><li><a shape="rect" href="version-notes-233.html" title="Version Notes 2.3.3">Version Notes 2.3.3</a></li><li><a shape="rect" href="version-notes-2312.html" title="Version Notes 2.3.1.2">Version Notes 2.3.1.2</a></li><li><a shape="rect" href="version-notes-2311.html" title="Version Notes 2.3.1.1">Version Notes 2.3.1.1</a></li><li><a shape="rect" href="version-notes-231.html" title="Version Notes 2.3.1">Version Notes 2.3.1</a></li></ul>
<h3><a shape="rect" name="MigrationGuide-VersionNotes2.2.x"></a>Version Notes 2.2.x</h3>
@@ -360,6 +360,9 @@ under the License.
$page.link($child)
<span class="smalltext">(Apache Struts 2 Documentation)</span>
<br>
+ $page.link($child)
+ <span class="smalltext">(Apache Struts 2 Documentation)</span>
+ <br>
</div>
</div>
Modified: websites/production/struts/content/development/2.x/docs/objectfactory.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/objectfactory.html (original)
+++ websites/production/struts/content/development/2.x/docs/objectfactory.html Tue Jul 30 19:05:31 2013
@@ -157,13 +157,13 @@ public class MyObjectFactory extends Obj
]]></script>
</div></div>
-<h3><a shape="rect" name="ObjectFactory-Definededicatedbuilder"></a>Define dedicated builder</h3>
-<p>If you want to just extend one part of ObjectFactory, ie. to change how <a shape="rect" href="result-types.html" title="Result Types">Result Types</a> are build, you can implement <tt>ResultBuilder</tt> interface below and register it with dedicated name, see <a shape="rect" href="plugins.html#Plugins-ExtensionPoints">Extension Points</a> for more details. All these builders are available as from version 2.3.16.</p>
+<h3><a shape="rect" name="ObjectFactory-Definededicatedfactory"></a>Define dedicated factory</h3>
+<p>If you want to just extend one part of ObjectFactory, ie. to change how <a shape="rect" href="result-types.html" title="Result Types">Result Types</a> are build, you can implement <tt>ResultFactory</tt> interface and register it with dedicated name, see <a shape="rect" href="plugins.html#Plugins-ExtensionPoints">Extension Points</a> for more details. Original ObjectFactory will use these dedicated factories to do the work. It's already done this way - the original functionality of ObjectFactory was extracted to separated classes which implements the interfaces below. Check the source of ObjectFactory to see more details. All these factories are available as from version 2.3.16.</p>
-<p>List of Builder interfaces:</p>
-<ul class="alternate" type="square"><li><tt>ResultBuilder</tt> - dedicated interfaces used to build <a shape="rect" href="result-types.html" title="Result Types">Result Types</a>
- <ul class="alternate" type="square"><li><tt>StrutsResultBuilder</tt> it's internal implementation which checks if Result implements <tt>ParamNameAwareResult</tt> interface to restrict names of parameters set on the instance of Result, see <a shape="rect" href="result-types.html" title="Result Types">Result Types</a> for more info.</li></ul>
- </li></ul>
+<p>List of Factory interfaces:</p>
+<ul class="alternate" type="square"><li><tt>ResultFactory</tt> - dedicated interfaces used by <a shape="rect" href="objectfactory.html" title="ObjectFactory">ObjectFactory</a> to create <a shape="rect" href="result-types.html" title="Result Types">Result Types</a>
+ <ul class="alternate" type="square"><li><tt>StrutsResultFactory</tt> it's internal implementation which checks if Result implements <tt>ParamNameAwareResult</tt> interface to restrict names of parameters set on the instance of Result, see <a shape="rect" href="result-types.html" title="Result Types">Result Types</a> for more info.</li></ul>
+ </li><li><tt>ActionFactory</tt> - dedicated interface used by <a shape="rect" href="objectfactory.html" title="ObjectFactory">ObjectFactory</a> to actions</li><li><tt>InterceptorFactory</tt> - dedicated interface used by <a shape="rect" href="objectfactory.html" title="ObjectFactory">ObjectFactory</a> to create interceptors</li><li><tt>ValidatorFactory</tt> - dedicated interface used by <a shape="rect" href="objectfactory.html" title="ObjectFactory">ObjectFactory</a> to create validators</li><li><tt>ConverterFactory</tt> - dedicated interface used by <a shape="rect" href="objectfactory.html" title="ObjectFactory">ObjectFactory</a> to create instances of <a shape="rect" class="createlink" href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=WW&title=TypeConverter&linkCreation=true&fromPageId=27470">TypeConverter</a></li></ul>
<h2><a shape="rect" name="ObjectFactory-Next%3AActionMapper"></a>Next: <a shape="rect" href="actionmapper.html" title="ActionMapper">ActionMapper</a></h2></div>
Modified: websites/production/struts/content/development/2.x/docs/plugins.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/plugins.html (original)
+++ websites/production/struts/content/development/2.x/docs/plugins.html Tue Jul 30 19:05:31 2013
@@ -173,7 +173,7 @@ Assuming /static/main.css is inside a pl
<p>The following extension points are available in Struts 2:</p>
-<p><table border="1"><tr><th colspan="1" rowspan="1">Type</th><th colspan="1" rowspan="1">Property</th><th colspan="1" rowspan="1">Scope</th><th colspan="1" rowspan="1">Description</th></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.ObjectFactory</td><td colspan="1" rowspan="1">struts.objectFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates actions, results, and interceptors</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.ResultFactory</td><td colspan="1" rowspan="1">struts.objectFactory.resultFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Dedicated factory used to create Results, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.ActionProxyFactory</td><td colspan="1" rowspan="1">struts.actionProxyFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creat
es the ActionProxy</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.util.ObjectTypeDeterminer</td><td colspan="1" rowspan="1">struts.objectTypeDeterminer</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Determines what the key and element class of a Map or Collection should be</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.dispatcher.mapper.ActionMapper</td><td colspan="1" rowspan="1">struts.mapper.class</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Determines the ActionMapping from a request and a URI from an ActionMapping</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.dispatcher.multipart.MultiPartRequest</td><td colspan="1" rowspan="1">struts.multipart.parser</td><td colspan="1" rowspan="1">per request</td><td colspan="1" rowspan="1">Parses a multipart request (file upload)</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.freemarker.FreemarkerManager</td><td colspan="1"
rowspan="1">struts.freemarker.manager.classname</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Loads and processes Freemarker templates</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.velocity.VelocityManager</td><td colspan="1" rowspan="1">struts.velocity.manager.classname</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Loads and processes Velocity templates</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.validator.ActionValidatorManager</td><td colspan="1" rowspan="1">struts.actionValidatorManager</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Main interface for validation managers (regular and annotation based). Handles both the loading of
+<p><table border="1"><tr><th colspan="1" rowspan="1">Type</th><th colspan="1" rowspan="1">Property</th><th colspan="1" rowspan="1">Scope</th><th colspan="1" rowspan="1">Description</th></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.ObjectFactory</td><td colspan="1" rowspan="1">struts.objectFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates actions, results, and interceptors</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.ActionFactory</td><td colspan="1" rowspan="1">struts.objectFactory.actionFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Dedicated factory used to create Actions, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.ResultFactory</td><td colspan="1" rowspan="1">struts.objectFactory.resultFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowsp
an="1">Dedicated factory used to create Results, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.InterceptorFactory</td><td colspan="1" rowspan="1">struts.objectFactory.interceptorFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Dedicated factory used to create Interceptors, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.ConverterFactory</td><td colspan="1" rowspan="1">struts.objectFactory.converterFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Dedicated factory used to create TypeConverters, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.factory.ValidatorFactory</td><td colspan="1" rowspan="1">struts.objectFactory.validator
Factory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Dedicated factory used to create Validators, you can implement/extend existing one instead of defining new ObjectFactory</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.ActionProxyFactory</td><td colspan="1" rowspan="1">struts.actionProxyFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates the ActionProxy</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.util.ObjectTypeDeterminer</td><td colspan="1" rowspan="1">struts.objectTypeDeterminer</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Determines what the key and element class of a Map or Collection should be</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.dispatcher.mapper.ActionMapper</td><td colspan="1" rowspan="1">struts.mapper.class</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Determines the ActionMapping from a r
equest and a URI from an ActionMapping</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.dispatcher.multipart.MultiPartRequest</td><td colspan="1" rowspan="1">struts.multipart.parser</td><td colspan="1" rowspan="1">per request</td><td colspan="1" rowspan="1">Parses a multipart request (file upload)</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.freemarker.FreemarkerManager</td><td colspan="1" rowspan="1">struts.freemarker.manager.classname</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Loads and processes Freemarker templates</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.velocity.VelocityManager</td><td colspan="1" rowspan="1">struts.velocity.manager.classname</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Loads and processes Velocity templates</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.validator.ActionValidatorManager</td><td colspan="1" rowspan="1">struts.ac
tionValidatorManager</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Main interface for validation managers (regular and annotation based). Handles both the loading of
configuration and the actual validation (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.util.ValueStackFactory</td><td colspan="1" rowspan="1">struts.valueStackFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates value stacks (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.reflection.ReflectionProvider</td><td colspan="1" rowspan="1">struts.reflectionProvider</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Provides reflection services, key place to plug in a custom expression language (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.reflection.ReflectionContextFactory</td><td colspan="1" rowspan="1">struts.reflectionContextFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates reflection context maps used for reflection and expression language operations (since 2.1)</td></tr><tr><td colspan="1"
rowspan="1">com.opensymphony.xwork2.config.PackageProvider</td><td colspan="1" rowspan="1">N/A</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">All beans registered as PackageProvider implementations will be automatically included in configuration building (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.util.PatternMatcher</td><td colspan="1" rowspan="1">struts.patternMatcher</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Matches patterns, such as action names, generally used in configuration (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.dispatcher.DefaultStaticContentLoader</td><td colspan="1" rowspan="1">struts.staticContentLoader</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Loads static resources (since 2.1)</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.XWorkConverter</td><td colspan="1" rowspan="1">strut
s.xworkConverter</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Handles conversion logic and allows to load custom converters per class or per action</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.TextProvider</td><td colspan="1" rowspan="1">struts.xworkTextProvider</td><td colspan="1" rowspan="1">default</td><td colspan="1" rowspan="1">Allows provide custom TextProvider for whole application</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.LocaleProvider</td><td colspan="1" rowspan="1">struts.localeProvider</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Allows provide custom TextProvider for whole application</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.components.UrlRenderer</td><td colspan="1" rowspan="1">struts.urlRenderer</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Allows provide custom implementation of environment specific URL rendering/creating
class</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.UnknownHandlerManager</td><td colspan="1" rowspan="1">struts.unknownHandlerManager</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Implementation of this interface allows handle logic of unknown Actions, Methods or Results</td></tr><tr><td colspan="1" rowspan="1">org.apache.struts2.views.util.UrlHelper</td><td colspan="1" rowspan="1">struts.view.urlHelper</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Helper class used with URLRenderer to provide exact logic for building URLs</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.FileManagerFactory</td><td colspan="1" rowspan="1">struts.fileManagerFactory</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Used to create FileManager instance to access files on the File System as also to monitor if reload is needed,
can be implemented / overwritten to meet specific an application server needs
</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.CollectionConverter</td><td colspan="1" rowspan="1">struts.converter.collection</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Converter used to convert any object to Collection and back</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.ArrayConverter</td><td colspan="1" rowspan="1">struts.converter.array</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Converter used to convert any object to Array and back</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.DateConverter</td><td colspan="1" rowspan="1">struts.converter.date</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Converter used to convert any object to Date and back</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.NumberConverter</td><td colspan="1" rowspan="1">struts.conv
erter.number</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Converter used to convert any object to Number and back</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.impl.StringConverter</td><td colspan="1" rowspan="1">struts.converter.string</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Converter used to convert any object to String and back</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor</td><td colspan="1" rowspan="1">struts.conversion.properties.processor</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Process Properties to create converters</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor</td><td colspan="1" rowspan="1">struts.converter.file.processor</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Process <class>-conversion.propertie
s file create converters</class></td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor</td><td colspan="1" rowspan="1">struts.converter.annotation.processor</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Process TypeConversion annotation to create converters</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.TypeConverterCreator</td><td colspan="1" rowspan="1">struts.converter.creator</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Creates user converters</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.conversion.TypeConverterHolder</td><td colspan="1" rowspan="1">struts.converter.holder</td><td colspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Holds user converters' instances</td></tr><tr><td colspan="1" rowspan="1">com.opensymphony.xwork2.util.TextParser</td><td colspan="1" rowspan="1">struts.expression.parser</td><td co
lspan="1" rowspan="1">singleton</td><td colspan="1" rowspan="1">Used to parse expressions like ${foo.bar} or %{bar.foo} but it is up tp the TextParser's
Modified: websites/production/struts/content/development/2.x/docs/preparable-interface.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/preparable-interface.html (original)
+++ websites/production/struts/content/development/2.x/docs/preparable-interface.html Tue Jul 30 19:05:31 2013
@@ -159,13 +159,11 @@ under the License.
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>EditAction.java prepare Method</b></div><div class="codeContent panelContent">
<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-
carModelsAvailable = carModelsService.getCarModels() ;
setPersonBean( editService.getPerson() );
-
]]></script>
</div></div>
Modified: websites/production/struts/content/development/2.x/docs/processing-forms.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/processing-forms.html (original)
+++ websites/production/struts/content/development/2.x/docs/processing-forms.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/result-types.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/result-types.html (original)
+++ websites/production/struts/content/development/2.x/docs/result-types.html Tue Jul 30 19:05:31 2013
@@ -177,7 +177,7 @@ under the License.
<h3><a shape="rect" name="ResultTypes-Extending"></a>Extending</h3>
-<p>You can always extend defined result types and implement whatever logic you need. To simplify process of that, you can define you custom <tt>ResultBuilder</tt> and use it with connection with custom interface which your Result implements. Check <a shape="rect" href="objectfactory.html#ObjectFactory-DefineDedicatedBuilder">Define dedicated builder</a> to see how to do it.</p>
+<p>You can always extend defined result types and implement whatever logic you need. To simplify process of that, you can define your custom <tt>ResultFactory</tt> and use it with connection with custom interface which your Result implements. Check <a shape="rect" href="objectfactory.html#ObjectFactory-DefineDedicatedFactory">Define dedicated factory</a> to see how to do it.</p>
<p>Struts 2 provides one such extension for you: <tt>ParamNameAwareResult</tt> interface when used with <tt>StrutsResultBuilder</tt> can limit parameters assigned to the result. So you can simple extend existing result with such a functionality as below:</p>
@@ -185,7 +185,7 @@ under the License.
<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
public class MyResult extends ServletDispatcherResult implements ParamNameAwareResult {
- public boolean acceptParamName(String name, String value) {
+ public boolean acceptableParamName(String name, String value) {
return "accept".equals(name);
}
Modified: websites/production/struts/content/development/2.x/docs/spring-and-struts-2.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/spring-and-struts-2.html (original)
+++ websites/production/struts/content/development/2.x/docs/spring-and-struts-2.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -284,10 +285,6 @@ public void setEditService(EditService e
<div class="table-wrap">
<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Next </th><td colspan="1" rowspan="1" class="confluenceTd"> Onward to <a shape="rect" href="struts-2-annotations.html" title="Struts 2 Annotations">Struts 2 Annotations</a> </td></tr><tr><th colspan="1" rowspan="1" class="confluenceTh">Previous </th><td colspan="1" rowspan="1" class="confluenceTd"> Return to <a shape="rect" href="struts-2-themes.html" title="Struts 2 Themes">Struts 2 Themes</a> </td></tr></tbody></table>
</div>
-
-
-
-
</div>
</div>
Modified: websites/production/struts/content/development/2.x/docs/struts-2-annotations.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/struts-2-annotations.html (original)
+++ websites/production/struts/content/development/2.x/docs/struts-2-annotations.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/struts-2-form-tags.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/struts-2-form-tags.html (original)
+++ websites/production/struts/content/development/2.x/docs/struts-2-form-tags.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
Modified: websites/production/struts/content/development/2.x/docs/struts-defaultxml.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/struts-defaultxml.html (original)
+++ websites/production/struts/content/development/2.x/docs/struts-defaultxml.html Tue Jul 30 19:05:31 2013
@@ -172,9 +172,22 @@ under the License.
<struts>
<bean class="com.opensymphony.xwork2.ObjectFactory" name="xwork" />
<bean type="com.opensymphony.xwork2.ObjectFactory" name="struts" class="org.apache.struts2.impl.StrutsObjectFactory" />
+
<bean type="com.opensymphony.xwork2.factory.ResultFactory" name="xwork" class="org.apache.struts2.factory.StrutsResultFactory" />
<bean type="com.opensymphony.xwork2.factory.ResultFactory" name="struts" class="org.apache.struts2.factory.StrutsResultFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ActionFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultActionFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ActionFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultActionFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" />
+ <bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" />
+
+ <bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="xwork" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" />
+ <bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" />
+
<bean type="com.opensymphony.xwork2.FileManager" class="com.opensymphony.xwork2.util.fs.DefaultFileManager" name="system" scope="singleton"/>
<bean type="com.opensymphony.xwork2.FileManagerFactory" class="com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory" name="xwork" scope="singleton"/>
Modified: websites/production/struts/content/development/2.x/docs/unit-testing.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/unit-testing.html (original)
+++ websites/production/struts/content/development/2.x/docs/unit-testing.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -179,7 +180,7 @@ under the License.
<p>The input fields for the form have the following name values: personBean.firstName, personBean.lastName, personBean.email, and personBean.age. When the user fills out those fields Struts will take the values and provide them to the appropriate set methods of the personBean object. So as part of the test I need to simulate the user filling out these form fields. The StrutsTestCase provides a request object (of type MockHttpServletRequest) that I can use to set these values in the request scope.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>testExecuteValidationPasses method from RegisterTest class</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
@Test
public void testExecuteValidationPasses() throws Exception() {
@@ -204,7 +205,6 @@ public void testExecuteValidationPasses(
}
-
]]></script>
</div></div>
@@ -220,13 +220,11 @@ public void testExecuteValidationPasses(
<p>So in the next statement, I check that success was returned.</p>
-
<h3><a shape="rect" name="UnitTesting-TestValidationShouldFail"></a>Test Validation Should Fail</h3>
<p>To test that validation should fail, I just need to have a test method that doesn't provide input for a form field. For example, in the validate method of the Register Action class, is a test to ensure the user has entered some information for the personBean.firstName input field. In the test method I would just not use the request object to set a parameter for that field.</p>
-
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>testExecuteValidationFailsMissingFirstName method from RegisterTest class</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
@Test
public void testExecuteValidationFailsMissingFirstName() throws Exception() {
@@ -251,7 +249,6 @@ public void testExecuteValidationFailsMi
}
-
]]></script>
</div></div>
Added: websites/production/struts/content/development/2.x/docs/version-notes-2316.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/version-notes-2316.html (added)
+++ websites/production/struts/content/development/2.x/docs/version-notes-2316.html Tue Jul 30 19:05:31 2013
@@ -0,0 +1,202 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+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.
+-->
+<html>
+<head>
+ <LINK type="text/css" rel="stylesheet" href="https://struts.apache.org/css/default.css">
+ <style type="text/css">
+ .dp-highlighter {
+ width:95% !important;
+ }
+ </style>
+ <style type="text/css">
+ .footer {
+ background-image: url('https://cwiki.apache.org/confluence/images/border/border_bottom.gif');
+ background-repeat: repeat-x;
+ background-position: left top;
+ padding-top: 4px;
+ color: #666;
+ }
+ </style>
+ <link href='http://struts.apache.org/highlighter/style/shCoreStruts.css' rel='stylesheet' type='text/css' />
+ <link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
+ <script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushPlain.js' type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+ <script type="text/javascript" language="javascript">
+ var hide = null;
+ var show = null;
+ var children = null;
+
+ function init() {
+ /* Search form initialization */
+ var form = document.forms['search'];
+ if (form != null) {
+ form.elements['domains'].value = location.hostname;
+ form.elements['sitesearch'].value = location.hostname;
+ }
+
+ /* Children initialization */
+ hide = document.getElementById('hide');
+ show = document.getElementById('show');
+ children = document.all != null ?
+ document.all['children'] :
+ document.getElementById('children');
+ if (children != null) {
+ children.style.display = 'none';
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ }
+ }
+
+ function showChildren() {
+ children.style.display = 'block';
+ show.style.display = 'none';
+ hide.style.display = 'inline';
+ }
+
+ function hideChildren() {
+ children.style.display = 'none';
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ }
+ </script>
+ <title>Version Notes 2.3.16</title>
+</head>
+<body onload="init()">
+<table border="0" cellpadding="2" cellspacing="0" width="100%">
+ <tr class="topBar">
+ <td align="left" valign="middle" class="topBarDiv" align="left" nowrap>
+ <a href="home.html">Home</a> > <a href="guides.html">Guides</a> > <a href="migration-guide.html">Migration Guide</a> > <a href="version-notes-2316.html">Version Notes 2.3.16</a>
+ </td>
+ <td align="right" valign="middle" nowrap>
+ <form name="search" action="http://www.google.com/search" method="get">
+ <input type="hidden" name="ie" value="UTF-8" />
+ <input type="hidden" name="oe" value="UTF-8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+ </td>
+ </tr>
+</table>
+
+<div id="PageContent">
+ <div class="pageheader" style="padding: 6px 0px 0px 0px;">
+ <!-- We'll enable this once we figure out how to access (and save) the logo resource -->
+ <!--img src="/wiki/images/confluence_logo.gif" style="float: left; margin: 4px 4px 4px 10px;" border="0"-->
+ <div style="margin: 0px 10px 0px 10px" class="smalltext">Apache Struts 2 Documentation</div>
+ <div style="margin: 0px 10px 8px 10px" class="pagetitle">Version Notes 2.3.16</div>
+
+ <div class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;">
+ <a href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=33298059">
+ <img src="https://cwiki.apache.org/confluence/images/icons/notep_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
+ <a href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=33298059">Edit Page</a>
+
+ <a href="https://cwiki.apache.org/confluence/pages/listpages.action?key=WW">
+ <img src="https://cwiki.apache.org/confluence/images/icons/browse_space.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Browse Space"></a>
+ <a href="https://cwiki.apache.org/confluence/pages/listpages.action?key=WW">Browse Space</a>
+
+ <a href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=WW&fromPageId=33298059">
+ <img src="https://cwiki.apache.org/confluence/images/icons/add_page_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Add Page"></a>
+ <a href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=WW&fromPageId=33298059">Add Page</a>
+
+ <a href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=WW&fromPageId=33298059">
+ <img src="https://cwiki.apache.org/confluence/images/icons/add_blogentry_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Add News"></a>
+ <a href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=WW&fromPageId=33298059">Add News</a>
+ </div>
+ </div>
+
+ <div class="pagecontent">
+ <div class="wiki-content">
+ <div id="ConfluenceContent"><p><img align="middle" class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" alt="" border="0"> These are the notes for the Struts 2.3.16 distribution.</p>
+
+<p><img align="middle" class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" alt="" border="0"> For prior notes in this release series, see <a shape="rect" href="version-notes-23151.html" title="Version Notes 2.3.15.1">Version Notes 2.3.15.1</a></p>
+
+<ul><li>If you are a Maven user, you might want to get started using the <a shape="rect" href="struts-2-maven-archetypes.html" title="Struts 2 Maven Archetypes">Maven Archetype</a>.</li><li>Another quick-start entry point is the <b>blank</b> application. Rename and deploy the WAR as a starting point for your own development.</li></ul>
+
+
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Maven Dependency</b></div><div class="codeContent panelContent">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+<dependency>
+ <groupId>org.apache.struts</groupId>
+ <artifactId>struts2-core</artifactId>
+ <version>2.3.16</version>
+</dependency>
+]]></script>
+</div></div>
+
+<p>You can also use Struts Archetype Catalog like below</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Struts Archetype Catalog</b></div><div class="codeContent panelContent">
+<script class="theme: Default; brush: plain; gutter: false" type="syntaxhighlighter"><![CDATA[
+mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/
+]]></script>
+</div></div>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Staging Repository</b></div><div class="codeContent panelContent">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<repositories>
+ <repository>
+ <id>apache.nexus</id>
+ <name>ASF Nexus Staging</name>
+ <url>https://repository.apache.org/content/groups/staging/</url>
+ </repository>
+</repositories>]]></script>
+</div></div>
+
+<h2><a shape="rect" name="VersionNotes2.3.16-InternalChanges"></a>Internal Changes</h2>
+
+<ul><li>Merged security fix from version 2.3.15.1</li><li>Defined new factory interfaces to simplify extending ObjectFactory, see <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/WW-4158">WW-4158</a></li><li>New interface was defined <tt>ParamNameAwareResult</tt> see <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/WW-4144">WW-4144</a></li><li>and other small improvements</li></ul>
+
+
+<h3><a shape="rect" name="VersionNotes2.3.16-IssueDetail"></a>Issue Detail</h3>
+
+<ul><li><a shape="rect" class="external-link" href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12324267&projectId=12311041">JIRA Release Notes 2.3.15</a></li></ul>
+
+
+<h3><a shape="rect" name="VersionNotes2.3.16-IssueList"></a>Issue List</h3>
+
+<ul><li><a shape="rect" class="external-link" href="https://issues.apache.org/jira/issues/?filter=12324167">Struts 2.3.15 DONE</a></li><li><a shape="rect" class="external-link" href="https://issues.apache.org/jira/issues/?filter=12324168">Struts 2.3.16 TODO</a></li><li><a shape="rect" class="external-link" href="https://issues.apache.org/jira/issues/?filter=12318399">Struts 2.3.x TODO</a></li></ul>
+
+
+<h3><a shape="rect" name="VersionNotes2.3.16-Otherresources"></a>Other resources</h3>
+
+<ul><li><a shape="rect" class="external-link" href="http://www.mail-archive.com/commits%40struts.apache.org/" rel="nofollow">Commit Logs (Struts 1 and Struts 2)</a></li><li><a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/struts/struts2/trunk/">Source Code Repository (includes change browsing)</a></li></ul>
+</div>
+ </div>
+
+
+ </div>
+</div>
+<div class="footer">
+ Generated by CXF SiteExporter
+</div>
+</body>
+</html>
\ No newline at end of file
Modified: websites/production/struts/content/development/2.x/docs/wildcard-method-selection.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/wildcard-method-selection.html (original)
+++ websites/production/struts/content/development/2.x/docs/wildcard-method-selection.html Tue Jul 30 19:05:31 2013
@@ -38,6 +38,7 @@ under the License.
<link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
<script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
<script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -163,8 +164,6 @@ under the License.
<result name="success">view.jsp</result>
</action>
-
-
]]></script>
</div></div>