MentaTutorials

Rev

Rev 7 | Rev 10 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 soliveira 1
package org.hellomenta.action;
2 soliveira 2
 
3
import org.mentawai.core.BaseAction;
4
 
5
public class HelloAction extends BaseAction {
6
 
7
        public String hi() {
8
                String msg = input.getString("msg");
9
                if (isEmpty(msg)) {
10
                        msg = "Why you did not type anything?";
11
                }
8 soliveira 12
                output.setValue("msg", msg);
2 soliveira 13
                return SUCCESS;
14
        }
15
}