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

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


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

commit e16d4258ac661c9696c1200343e36a3561d2618d
Author: buildbot <[email protected]>
AuthorDate: Sun Nov 1 18:00:24 2026 +0000

    Automatic Site Publish by Buildbot
---
 output/getting-started/coding-actions.html | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/output/getting-started/coding-actions.html 
b/output/getting-started/coding-actions.html
index 678c46bd19..cefa391119 100644
--- a/output/getting-started/coding-actions.html
+++ b/output/getting-started/coding-actions.html
@@ -262,7 +262,15 @@ those form field values provided it has a public set 
method that matches the for
 
 <p>To personalize the MessageStore message (recall that class MessageStore is 
storing the message to display) 
 add the following Java code to the HelloWorldAction’s execute method after the 
statement that instantiates 
-the MessageStore object.</p>
+the MessageStore object. Before doing so, you need to add the following <code 
class="language-plaintext highlighter-rouge">setMessage</code> method to
+<code class="language-plaintext highlighter-rouge">MessageStore</code> 
class.</p>
+
+<p><strong>Add setMessage method to MessageStore</strong></p>
+
+<div class="language-java highlighter-rouge"><div class="highlight"><pre 
class="highlight"><code><span class="kd">public</span> <span 
class="kt">void</span> <span class="nf">setMessage</span><span 
class="o">(</span><span class="nc">String</span> <span 
class="n">message</span><span class="o">)</span> <span class="o">{</span>
+    <span class="k">this</span><span class="o">.</span><span 
class="na">message</span> <span class="o">=</span> <span 
class="n">message</span><span class="o">;</span>
+<span class="o">}</span>
+</code></pre></div></div>
 
 <p><strong>Add userName value to message</strong></p>
 

Reply via email to