Repository: struts-examples
Updated Branches:
  refs/heads/master 5b55e1aa8 -> 6d98cba65


changed tabs to spaces


Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/06c4deda
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/06c4deda
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/06c4deda

Branch: refs/heads/master
Commit: 06c4deda76ae90512db8b2f246d89e3a417b86cc
Parents: 5b55e1a
Author: Stefaan Dutry <stefaan.du...@gmail.com>
Authored: Mon Apr 17 15:22:24 2017 +0200
Committer: Stefaan Dutry <stefaan.du...@gmail.com>
Committed: Mon Apr 17 15:22:24 2017 +0200

----------------------------------------------------------------------
 .../helloworld/action/HelloWorldAction.java     | 58 ++++++++++----------
 .../struts/helloworld/model/MessageStore.java   | 25 ++++-----
 2 files changed, 40 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/06c4deda/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
----------------------------------------------------------------------
diff --git 
a/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
 
b/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
index b96dbda..8073413 100755
--- 
a/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
+++ 
b/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
@@ -14,35 +14,33 @@ import com.opensymphony.xwork2.ActionSupport;
  */
 public class HelloWorldAction extends ActionSupport {
 
-       private static final long serialVersionUID = 1L;
-       
-       /**
-        * The model class that stores the message
-        * to display in the view.
-        */
-       private MessageStore messageStore;
-       
-       /*
-        * Creates the MessageStore model object and 
-        * returns success.  The MessageStore model
-        * object will be available to the view.
-        * (non-Javadoc)
-        * @see com.opensymphony.xwork2.ActionSupport#execute()
-        */
-       public String execute() throws Exception {
-               
-               messageStore = new MessageStore() ;
-               return SUCCESS;
-       }
-
-       public MessageStore getMessageStore() {
-               return messageStore;
-       }
-
-       public void setMessageStore(MessageStore messageStore) {
-               this.messageStore = messageStore;
-       }
-       
-       
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * The model class that stores the message
+     * to display in the view.
+     */
+    private MessageStore messageStore;
+
+    /*
+     * Creates the MessageStore model object and 
+     * returns success.  The MessageStore model
+     * object will be available to the view.
+     * (non-Javadoc)
+     * @see com.opensymphony.xwork2.ActionSupport#execute()
+     */
+    public String execute() throws Exception {
+        
+        messageStore = new MessageStore() ;
+        return SUCCESS;
+    }
+
+    public MessageStore getMessageStore() {
+        return messageStore;
+    }
+
+    public void setMessageStore(MessageStore messageStore) {
+        this.messageStore = messageStore;
+    }
 
 }

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/06c4deda/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
----------------------------------------------------------------------
diff --git 
a/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java 
b/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
index 03d87d3..cb70e51 100755
--- 
a/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
+++ 
b/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
@@ -6,20 +6,19 @@ package org.apache.struts.helloworld.model;
  *
  */
 public class MessageStore {
-       
-       private String message;
-       
-       public MessageStore() {
-               
-               setMessage("Hello Struts User");
-       }
+    
+    private String message;
+    
+    public MessageStore() {
+        setMessage("Hello Struts User");
+    }
 
-       public String getMessage() {
-               return message;
-       }
+    public String getMessage() {
+        return message;
+    }
 
-       public void setMessage(String message) {
-               this.message = message;
-       }
+    public void setMessage(String message) {
+        this.message = message;
+    }
 
 }

Reply via email to