Webwork 단순 예제


package org.test.webwork.action;

import java.util.Date;
import com.opensymphony.xwork.ActionSupport;

public class HelloWorldAction extends ActionSupport {

 /** Message */
 private String message = null;

 public String execute() {
  message = "Hello World! ";
  message += new Date().toString();

  return SUCCESS;
 }

 // **************************** getter and setter method
 public String getMessage() {
  return message;
 }
 // **************************** getter and setter method end

}

댓글을 달아 주세요