This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/asf-staging by this push:
new 7df010d27 Updates stage by Jenkins
7df010d27 is described below
commit 7df010d27df8fb06ebcdf5cb85b359802131a82c
Author: jenkins <[email protected]>
AuthorDate: Thu Feb 1 16:52:35 2024 +0000
Updates stage by Jenkins
---
content/getting-started/processing-forms.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/content/getting-started/processing-forms.html
b/content/getting-started/processing-forms.html
index d572d5194..8569a2b6c 100644
--- a/content/getting-started/processing-forms.html
+++ b/content/getting-started/processing-forms.html
@@ -329,12 +329,12 @@ the Struts 2 framework. We need an Action class to
process this form. If you rec
<p>In the <code class="language-plaintext highlighter-rouge">Register</code>
class, note that we’ve declared an attribute named <code
class="language-plaintext highlighter-rouge">personBean</code> of type <code
class="language-plaintext highlighter-rouge">Person</code>, there are public
getter and setter methods for this object, and the getter is annotated with
<code class="language-plaintext highlighter-rouge">@StrutsParameter(depth =
1)</code>.</p>
-<p>In the previous <a href="coding-actions">Coding Struts 2 Actions</a>
tutorial, we annotated the username <strong>setter</strong>,
-which took a simple String as its parameter type, with <code
class="language-plaintext highlighter-rouge">@StrutsParameter</code>. In this
example, we are using a “Bean”
-object (sometimes referred to as a DTO or model object) to encapsulate the
form data. When we choose to use a DTO
-instead of a primitive, String, or other TypeConverter supported object, we
must annotate the <strong>getter</strong>
-method instead, and also assign a depth corresponding to how deep the DTO
graph is. In this case, the <code class="language-plaintext
highlighter-rouge">Person</code> object
-does not have any further DTOs or collections within it, so a depth of 1 will
suffice.</p>
+<p>In the previous <a href="coding-actions">Coding Struts 2 Actions</a>
tutorial, we annotated the username <strong>setter</strong>, which took a
+simple String as its parameter type, with <code class="language-plaintext
highlighter-rouge">@StrutsParameter</code>. In this example, we are using a
“Bean” object (sometimes
+referred to as a DTO or model object) to encapsulate the form data. When we
choose to use a DTO instead of a primitive,
+String, or other TypeConverter supported object, we must annotate the
<strong>getter</strong> method instead, and also assign a depth
+corresponding to how deep the DTO graph is. In this case, the <code
class="language-plaintext highlighter-rouge">Person</code> object does not have
any further DTOs or
+collections within it, so a depth of 1 will suffice.</p>
<p>For more information on these annotations and their security implications,
please refer
to <a
href="../security/index#defining-and-annotating-your-action-parameters">Security</a>.</p>