Modified:
websites/production/struts/content/getting-started/message-resource-files.html
==============================================================================
---
websites/production/struts/content/getting-started/message-resource-files.html
(original)
+++
websites/production/struts/content/getting-started/message-resource-files.html
Wed Apr 12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="message-resource-files">Message Resource Files</h2>
<p>This tutorial assumes youâve completed the <a
href="form-validation.html">Form Validation</a> tutorial and have a working
form_validation project. The example code for this tutorial, message_resource,
is available for checkout from the</p>
@@ -196,9 +197,9 @@ thankyou=Thank you for registering %{per
<p><strong>registerInput action node for struts.xml</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="nt"><action</span> <span class="na">name=</span><span
class="s">"registerInput"</span> <span class="na">class=</span><span
class="s">"org.apache.struts.register.action.Register"</span> <span
class="na">method=</span><span class="s">"input"</span> <span
class="nt">></span>
- <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"input"</span><span class="nt">></span>/register.jsp<span
class="nt"></result></span>
- <span class="nt"></action></span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nt"><action</span> <span class="na">name=</span><span
class="s">"registerInput"</span> <span class="na">class=</span><span
class="s">"org.apache.struts.register.action.Register"</span> <span
class="na">method=</span><span class="s">"input"</span> <span
class="nt">></span>
+ <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"input"</span><span class="nt">></span>/register.jsp<span
class="nt"></result></span>
+<span class="nt"></action></span>
</code></pre>
</div>
@@ -290,8 +291,8 @@ thankyou=Thank you for registering %{per
<p><strong>Using contact property</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="nt"><hr</span> <span class="nt">/></span>
- <span class="nt"><s:text</span> <span class="na">name=</span><span
class="s">"contact"</span> <span class="nt">/></span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nt"><hr</span> <span class="nt">/></span>
+<span class="nt"><s:text</span> <span class="na">name=</span><span
class="s">"contact"</span> <span class="nt">/></span>
</code></pre>
</div>
@@ -333,11 +334,11 @@ thankyou=Gracias por registrarse, %{pers
<p><strong>Specify The Locale As a URL Parameter</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="nt"><h3></span>Registro español<span class="nt"></h3></span>
- <span class="nt"><s:url</span> <span class="na">action=</span><span
class="s">"registerInput"</span> <span class="na">var=</span><span
class="s">"registerInputLinkES"</span><span class="nt">></span>
- <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"request_locale"</span><span class="nt">></span>es<span
class="nt"></s:param></span>
- <span class="nt"></s:url></span>
- <span class="nt"><p><a</span> <span class="na">href=</span><span
class="s">"${registerInputLinkES}"</span><span class="nt">></span>Por favor,
regÃstrese<span class="nt"></a></span> para nuestro sorteo<span
class="nt"></p></span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nt"><h3></span>Registro español<span class="nt"></h3></span>
+<span class="nt"><s:url</span> <span class="na">action=</span><span
class="s">"registerInput"</span> <span class="na">var=</span><span
class="s">"registerInputLinkES"</span><span class="nt">></span>
+ <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"request_locale"</span><span class="nt">></span>es<span
class="nt"></s:param></span>
+<span class="nt"></s:url></span>
+<span class="nt"><p><a</span> <span class="na">href=</span><span
class="s">"${registerInputLinkES}"</span><span class="nt">></span>Por favor,
regÃstrese<span class="nt"></a></span> para nuestro sorteo<span
class="nt"></p></span>
</code></pre>
</div>
@@ -353,6 +354,16 @@ thankyou=Gracias por registrarse, %{pers
<p>Weâve covered how to use message resources (resource bundles) in Struts 2
and also introduced how Struts 2 enables internationalization (i18n) in this
tutorial. To fully understand these concepts and learn more about Struts 2
consult the main Struts 2 documentation available at <a
href="http://struts.apache.org">http://struts.apache.org</a>.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="form-validation.html">Form validation</a></td>
+ <td>or</td>
+ <td>onward to <a href="exception-handling.html">Exception
handling</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified:
websites/production/struts/content/getting-started/preperable-interface.html
==============================================================================
---
websites/production/struts/content/getting-started/preperable-interface.html
(original)
+++
websites/production/struts/content/getting-started/preperable-interface.html
Wed Apr 12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="preparable-interface">Preparable Interface</h2>
<p>The example code for this tutorial, preparable_interface, is available at
<a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a>.</p>
@@ -147,9 +148,9 @@
<p><strong>EditAction.java prepare Method</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="n">carModelsAvailable</span> <span class="o">=</span> <span
class="n">carModelsService</span><span class="o">.</span><span
class="na">getCarModels</span><span class="o">()</span> <span class="o">;</span>
-
- <span class="n">setPersonBean</span><span class="o">(</span><span
class="n">editService</span><span class="o">.</span><span
class="na">getPerson</span><span class="o">());</span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="n">carModelsAvailable</span> <span class="o">=</span> <span
class="n">carModelsService</span><span class="o">.</span><span
class="na">getCarModels</span><span class="o">();</span>
+
+<span class="n">setPersonBean</span><span class="o">(</span><span
class="n">editService</span><span class="o">.</span><span
class="na">getPerson</span><span class="o">());</span>
</code></pre>
</div>
@@ -161,6 +162,16 @@
<p>When your application requires specific statements to be executed no matter
which method of the Action class is called or when validation fails, you should
implement the Preparable interface and override the prepare method.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="http-session.html">HTTP Session</a></td>
+ <td>or</td>
+ <td>onward to <a href="exclude-parameters.html">Exclude
Parameters</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified:
websites/production/struts/content/getting-started/processing-forms.html
==============================================================================
--- websites/production/struts/content/getting-started/processing-forms.html
(original)
+++ websites/production/struts/content/getting-started/processing-forms.html
Wed Apr 12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="processing-forms">Processing Forms</h2>
<p>This tutorial assumes youâve completed the <a
href="coding-actions.html">Coding Struts 2 Actons</a> tutorial and have a
working coding_actions project. The example code for this tutorial,
form_processing, is available for checkout from the Struts 2 GitHub subversion
repository: <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a>.</p>
@@ -351,6 +352,16 @@
<p><img src="attachments/att14975000_thanyoujsp.png" alt="thanyoujsp.png"
/></p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="coding-actions.html">Coding Struts 2
Actions</a></td>
+ <td>or</td>
+ <td>onward to <a href="form-validation.html">Form validation</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified: websites/production/struts/content/getting-started/spring.html
==============================================================================
--- websites/production/struts/content/getting-started/spring.html (original)
+++ websites/production/struts/content/getting-started/spring.html Wed Apr 12
08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="spring-and-struts-2">Spring and Struts 2</h2>
<p>The example code for this tutorial, spring_struts, is available for
checkout at <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a></p>
@@ -165,7 +166,7 @@
<p><strong>EditAction Class No Hard-Coded Dependency</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="kd">private</span> <span class="n">EditService</span> <span
class="n">editService</span> <span class="o">;</span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="kd">private</span> <span class="n">EditService</span> <span
class="n">editService</span><span class="o">;</span>
</code></pre>
</div>
@@ -269,6 +270,16 @@
<p>In this tutorial we reviewed how to use the Struts 2 Spring plugin to
integrate Spring and Struts. By using the Struts 2 Spring plugin you can have
Spring manage the dependencies of your ActionSupport classes. Of course you can
also take advantage of the many other benefits (AOP, Spring JDBC) that the
Spring framework provides.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="themes.html">Themes</a></td>
+ <td>or</td>
+ <td>onward to <a href="annotations.html">Annotations</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified: websites/production/struts/content/getting-started/themes.html
==============================================================================
--- websites/production/struts/content/getting-started/themes.html (original)
+++ websites/production/struts/content/getting-started/themes.html Wed Apr 12
08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="themes">Themes</h2>
<p>The example code for this tutorial, themes, is available for checkout at <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a></p>
@@ -144,16 +145,16 @@
<p><strong>HTML Created By Struts 2 Select Tag</strong></p>
<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nt"><tr></span>
-<span class="nt"><td</span> <span class="na">class=</span><span
class="s">"tdLabel"</span><span class="nt">></span>
-<span class="nt"><label</span> <span class="na">for=</span><span
class="s">"save_personBean_sport"</span> <span class="na">class=</span><span
class="s">"label"</span><span class="nt">></span>Favorite sport:<span
class="nt"></label></span>
-<span class="nt"></td></span>
-<span class="nt"><td></span>
-<span class="nt"><select</span> <span class="na">name=</span><span
class="s">"personBean.sport"</span> <span class="na">id=</span><span
class="s">"save_personBean_sport"</span><span class="nt">></span>
- <span class="nt"><option</span> <span class="na">value=</span><span
class="s">"football"</span><span class="nt">></span>football<span
class="nt"></option></span>
- <span class="nt"><option</span> <span class="na">value=</span><span
class="s">"baseball"</span><span class="nt">></span>baseball<span
class="nt"></option></span>
- <span class="nt"><option</span> <span class="na">value=</span><span
class="s">"basketball"</span> <span class="na">selected=</span><span
class="s">"selected"</span><span class="nt">></span>basketball<span
class="nt"></option></span>
-<span class="nt"></select></span>
-<span class="nt"></td></span>
+ <span class="nt"><td</span> <span class="na">class=</span><span
class="s">"tdLabel"</span><span class="nt">></span>
+ <span class="nt"><label</span> <span class="na">for=</span><span
class="s">"save_personBean_sport"</span> <span class="na">class=</span><span
class="s">"label"</span><span class="nt">></span>Favorite sport:<span
class="nt"></label></span>
+ <span class="nt"></td></span>
+ <span class="nt"><td></span>
+ <span class="nt"><select</span> <span class="na">name=</span><span
class="s">"personBean.sport"</span> <span class="na">id=</span><span
class="s">"save_personBean_sport"</span><span class="nt">></span>
+ <span class="nt"><option</span> <span
class="na">value=</span><span class="s">"football"</span><span
class="nt">></span>football<span class="nt"></option></span>
+ <span class="nt"><option</span> <span
class="na">value=</span><span class="s">"baseball"</span><span
class="nt">></span>baseball<span class="nt"></option></span>
+ <span class="nt"><option</span> <span
class="na">value=</span><span class="s">"basketball"</span> <span
class="na">selected=</span><span class="s">"selected"</span><span
class="nt">></span>basketball<span class="nt"></option></span>
+ <span class="nt"></select></span>
+ <span class="nt"></td></span>
<span class="nt"></tr></span>
</code></pre>
</div>
@@ -273,6 +274,16 @@
<p>To learn more about how to use the Struts 2 themes and how you can override
them, visit <a href="//struts.apache.org/docs/themes-and-templates.html">Themes
and Templates Documentation</a> .</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="wildcard-method-selection.html">Wildcard method
selection</a></td>
+ <td>or</td>
+ <td>onward to <a href="spring.html">Spring and Struts 2</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified: websites/production/struts/content/getting-started/unit-testing.html
==============================================================================
--- websites/production/struts/content/getting-started/unit-testing.html
(original)
+++ websites/production/struts/content/getting-started/unit-testing.html Wed
Apr 12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="unit-testing">Unit Testing</h2>
<p>The example code for this tutorial, unit_testing, is available at <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a></p>
@@ -147,10 +148,10 @@
<p><strong>struts.xml</strong></p>
-<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="nt"><action</span> <span class="na">name=</span><span
class="s">"register"</span> <span class="na">class=</span><span
class="s">"org.apache.struts.register.action.Register"</span> <span
class="na">method=</span><span class="s">"execute"</span><span
class="nt">></span>
- <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"success"</span><span class="nt">></span>/thankyou.jsp<span
class="nt"></result></span>
- <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"input"</span><span class="nt">></span>/register.jsp<span
class="nt"></result></span>
- <span class="nt"></action></span>
+<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nt"><action</span> <span class="na">name=</span><span
class="s">"register"</span> <span class="na">class=</span><span
class="s">"org.apache.struts.register.action.Register"</span> <span
class="na">method=</span><span class="s">"execute"</span><span
class="nt">></span>
+ <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"success"</span><span class="nt">></span>/thankyou.jsp<span
class="nt"></result></span>
+ <span class="nt"><result</span> <span class="na">name=</span><span
class="s">"input"</span><span class="nt">></span>/register.jsp<span
class="nt"></result></span>
+<span class="nt"></action></span>
</code></pre>
</div>
@@ -205,19 +206,19 @@
<div class="highlighter-rouge"><pre class="highlight"><code><span
class="nd">@Test</span>
<span class="kd">public</span> <span class="kt">void</span> <span
class="nf">testExecuteValidationFailsMissingFirstName</span><span
class="p">(</span><span class="o">)</span> <span class="kd">throws</span> <span
class="n">Exception</span><span class="o">()</span> <span class="o">{</span>
- <span class="c1">//request.setParameter("personBean.firstName",
"Bruce");</span>
- <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.lastName"</span><span class="o">,</span> <span
class="s">"Phillips"</span><span class="o">);</span>
- <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.email"</span><span class="o">,</span> <span
class="s">"[email protected]"</span><span class="o">);</span>
- <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.age"</span><span class="o">,</span> <span
class="s">"19"</span><span class="o">);</span>
-
- <span class="n">ActionProxy</span> <span class="n">actionProxy</span> <span
class="o">=</span> <span class="n">getActionProxy</span><span
class="o">(</span><span class="s">"/register.action"</span><span
class="o">);</span>
- <span class="n">Register</span> <span class="n">action</span> <span
class="o">=</span> <span class="o">(</span><span class="n">Register</span><span
class="o">)</span> <span class="n">actionProxy</span><span
class="o">.</span><span class="na">getAction</span><span class="o">()</span>
<span class="o">;</span>
-
- <span class="n">assertNotNull</span><span class="o">(</span><span
class="s">"The action is null but should not be."</span><span
class="o">,</span> <span class="n">action</span><span class="o">);</span>
-
- <span class="n">String</span> <span class="n">result</span> <span
class="o">=</span> <span class="n">actionProxy</span><span
class="o">.</span><span class="na">execute</span><span class="o">();</span>
-
- <span class="n">assertEquals</span><span class="o">(</span><span
class="s">"The execute method did not return "</span> <span class="o">+</span>
<span class="n">ActionSupport</span><span class="o">.</span><span
class="na">INPUT</span> <span class="o">+</span> <span class="s">" but should
have."</span><span class="o">,</span> <span class="n">ActionSupport</span><span
class="o">.</span><span class="na">INPUT</span><span class="o">,</span> <span
class="n">result</span><span class="o">);</span>
+ <span class="c1">//request.setParameter("personBean.firstName",
"Bruce");</span>
+ <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.lastName"</span><span class="o">,</span> <span
class="s">"Phillips"</span><span class="o">);</span>
+ <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.email"</span><span class="o">,</span> <span
class="s">"[email protected]"</span><span class="o">);</span>
+ <span class="n">request</span><span class="o">.</span><span
class="na">setParameter</span><span class="o">(</span><span
class="s">"personBean.age"</span><span class="o">,</span> <span
class="s">"19"</span><span class="o">);</span>
+
+ <span class="n">ActionProxy</span> <span class="n">actionProxy</span>
<span class="o">=</span> <span class="n">getActionProxy</span><span
class="o">(</span><span class="s">"/register.action"</span><span
class="o">);</span>
+ <span class="n">Register</span> <span class="n">action</span> <span
class="o">=</span> <span class="o">(</span><span class="n">Register</span><span
class="o">)</span> <span class="n">actionProxy</span><span
class="o">.</span><span class="na">getAction</span><span class="o">()</span>
<span class="o">;</span>
+
+ <span class="n">assertNotNull</span><span class="o">(</span><span
class="s">"The action is null but should not be."</span><span
class="o">,</span> <span class="n">action</span><span class="o">);</span>
+
+ <span class="n">String</span> <span class="n">result</span> <span
class="o">=</span> <span class="n">actionProxy</span><span
class="o">.</span><span class="na">execute</span><span class="o">();</span>
+
+ <span class="n">assertEquals</span><span class="o">(</span><span
class="s">"The execute method did not return "</span> <span class="o">+</span>
<span class="n">ActionSupport</span><span class="o">.</span><span
class="na">INPUT</span> <span class="o">+</span> <span class="s">" but should
have."</span><span class="o">,</span> <span class="n">ActionSupport</span><span
class="o">.</span><span class="na">INPUT</span><span class="o">,</span> <span
class="n">result</span><span class="o">);</span>
<span class="o">}</span>
</code></pre>
</div>
@@ -228,6 +229,16 @@
<p>There is much more you can do with the Struts 2 JUnit plugin to help you
test the methods of your Action class in conjunction with the Struts 2
framemwork. If your Struts 2 application uses Spring to inject dependencies
into the Action class then the Struts 2 JUnit Plugin has a StrutsSpringTestCase
that your test class should extend. Please read <a
href="//struts.apache.org/docs/testing-actions.html">Testing Actions</a> to
learn more.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="introducing-interceptors.html">Introducing
Interceptors</a></td>
+ <td>or</td>
+ <td>onward to <a href="http-session.html">HTTP Session</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified: websites/production/struts/content/getting-started/using-tags.html
==============================================================================
--- websites/production/struts/content/getting-started/using-tags.html
(original)
+++ websites/production/struts/content/getting-started/using-tags.html Wed Apr
12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="using-tags">Using Tags</h2>
<p>This tutorial assumes youâve completed the <a
href="hello-world-using-struts2.html">Hello World</a> tutorial and have a
working helloworld project. The example code for this tutorial, using_tags, is
available for checkout from the Struts 2 GitHub repository at <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a>.
The example projects use Maven to manage the artifact dependencies and to
build the .war files.</p>
@@ -330,6 +331,16 @@ If you want to actually read the Struts
<p>We covered a lot in this tutorial, but weâve really only scratched the
surface of how to use the Struts 2 tags. Consult the <em>Struts 2 Tag
Reference</em> for much more information about all the Struts 2 tags.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="hello-world-using-struts2.html">Hello World using
Struts 2</a></td>
+ <td>or</td>
+ <td>onward to <a href="coding-actions.html">Coding Struts 2
Actions</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified:
websites/production/struts/content/getting-started/wildcard-method-selection.html
==============================================================================
---
websites/production/struts/content/getting-started/wildcard-method-selection.html
(original)
+++
websites/production/struts/content/getting-started/wildcard-method-selection.html
Wed Apr 12 08:19:03 2017
@@ -121,6 +121,7 @@
<article class="container">
<section class="col-md-12">
+ <a href="index.html" title="back to Getting Started"><< back to Getting
Started</a>
<h2 id="wildcard-method-selection">Wildcard Method Selection</h2>
<p>The example code for this tutorial, wildcard_method_selection, is available
for checkout at <a
href="https://github.com/apache/struts-examples">https://github.com/apache/struts-examples</a></p>
@@ -194,6 +195,16 @@
<p>By using the wildcard method selection technique explained above, you can
significantly reduce the number of action mapping nodes you need to write and
manage in the Struts 2 XML configuration file.</p>
+<table>
+ <tbody>
+ <tr>
+ <td>Return to <a href="form-validation-using-xml.html">Form validation
using XML</a></td>
+ <td>or</td>
+ <td>onward to <a href="themes.html">Themes</a></td>
+ </tr>
+ </tbody>
+</table>
+
</section>
</article>
Modified: websites/production/struts/content/highlighter/github-theme.css
==============================================================================
Binary files websites/production/struts/content/highlighter/github-theme.css
(original) and websites/production/struts/content/highlighter/github-theme.css
Wed Apr 12 08:19:03 2017 differ