/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
- package com.jackhatedance.test.struts2;
- import com.opensymphony.xwork2.ActionSupport;
- public class HelloWorld extends ActionSupport {
- public static final String MESSAGE = "Struts is up and running ....";
- public String execute() throws Exception {
- setMessage(MESSAGE);
- setWho("jack");
- return SUCCESS;
- }
- private String message;
-
- private String who;
- public void setMessage(String message){
- this.message = message;
- }
- public String getMessage() {
- return message;
- }
- public String getWho() {
- return who;
- }
- public void setWho(String who) {
- this.who = who;
- }
- }