This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/main by this push:
new 3ab3c4bea0 Add setMessage method to MessageStore (#357)
3ab3c4bea0 is described below
commit 3ab3c4bea0c456a913e038abb8cae7e74640c72a
Author: Hitesh A. Bosamiya <[email protected]>
AuthorDate: Sun Nov 1 23:29:25 2026 +0530
Add setMessage method to MessageStore (#357)
* Add setMessage method to MessageStore
* Update coding-actions.md
Taking care of review comment
---
source/getting-started/coding-actions.md | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/source/getting-started/coding-actions.md
b/source/getting-started/coding-actions.md
index c4757b6b14..97081a43cf 100644
--- a/source/getting-started/coding-actions.md
+++ b/source/getting-started/coding-actions.md
@@ -113,7 +113,16 @@ public void setUserName(String userName) {
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.
+the MessageStore object. Before doing so, you need to add the following
`setMessage` method to
+`MessageStore` class.
+
+**Add setMessage method to MessageStore**
+
+```java
+public void setMessage(String message) {
+ this.message = message;
+}
+```
**Add userName value to message**