PageRenderTime 20ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/web/Test/src/com/jackhatedance/test/struts2/HelloWorld.java

http://drcp.googlecode.com/
Java | 33 lines | 24 code | 9 blank | 0 comment | 0 complexity | ad9341b96b447c9c48ed56f51f208bd6 MD5 | raw file
 1package com.jackhatedance.test.struts2;
 2
 3import com.opensymphony.xwork2.ActionSupport;
 4public class HelloWorld extends ActionSupport {
 5
 6    public static final String MESSAGE = "Struts is up and running ....";
 7
 8    public String execute() throws Exception {
 9        setMessage(MESSAGE);
10        setWho("jack");
11        return SUCCESS;
12    }
13
14    private String message;
15    
16    private String who;
17
18    public void setMessage(String message){
19        this.message = message;
20    }
21
22    public String getMessage() {
23        return message;
24    }
25
26	public String getWho() {
27		return who;
28	}
29
30	public void setWho(String who) {
31		this.who = who;
32	}
33}