diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/integration/SaveGangsterAction.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/integration/SaveGangsterAction.java index afc358728..830e377e5 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/integration/SaveGangsterAction.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/integration/SaveGangsterAction.java @@ -36,7 +36,8 @@ public class SaveGangsterAction extends Action { // Some code to save the gangster to the db as necessary GangsterForm gform = (GangsterForm) form; ActionMessages messages = new ActionMessages(); - messages.add("msg", new ActionMessage("Gangster " + gform.getName() + " added successfully")); + System.out.println(gform.getName()); + messages.add("msg", new ActionMessage("struts1.gangsterAdded", gform.getName())); addMessages(request, messages); return mapping.findForward("success"); diff --git a/apps/showcase/src/main/resources/globalMessages.properties b/apps/showcase/src/main/resources/globalMessages.properties index d3417f788..4e61a5d89 100644 --- a/apps/showcase/src/main/resources/globalMessages.properties +++ b/apps/showcase/src/main/resources/globalMessages.properties @@ -7,3 +7,5 @@ item.create=Create {0} item.list={0} List token.transfer.time=The bank transfer was executed at {0,date,HH:mm:ss MM-dd-yyyy} + +struts1.gangsterAdded=Gangster {0} added successfully \ No newline at end of file diff --git a/apps/showcase/src/main/resources/globalMessages_de.properties b/apps/showcase/src/main/resources/globalMessages_de.properties index 0dc66efa8..1eb8c3681 100644 --- a/apps/showcase/src/main/resources/globalMessages_de.properties +++ b/apps/showcase/src/main/resources/globalMessages_de.properties @@ -5,3 +5,5 @@ item.create={0} neu anlegen item.list={0}-Liste token.transfer.time=Die \u00dcberweisung wurde am {0,date,HH:mm:ss MM-dd-yyyy} durchgef\u00fchrt + +struts1.gangsterAdded=Gangster {0} wurde erfolgreich hinzugefugt diff --git a/apps/showcase/src/main/resources/globalMessages_en.properties b/apps/showcase/src/main/resources/globalMessages_en.properties index e69de29bb..cb189e154 100644 --- a/apps/showcase/src/main/resources/globalMessages_en.properties +++ b/apps/showcase/src/main/resources/globalMessages_en.properties @@ -0,0 +1 @@ +struts1.gangsterAdded=Gangster {0} anadido con exito \ No newline at end of file