清风的blog 优然探索

HelloAction.java

package org.lxh.struts2.demo;

import com.opensymphony.xwork2.ActionSupport;

public class HelloAction extends ActionSupport {

 private String msg;

 public String getMsg() {
  return msg;
 }

 public void setMsg(String msg) {
  System.out.println("**************************");
  this.msg = msg;
 }

 public String execute() throws Exception {
  if ("mldnlxh".equalsIgnoreCase(this.msg)) {
   return ActionSupport.SUCCESS;
  } else {
   return ActionSupport.ERROR;
  }
 }

}
 

2009年7月6日 | 发布:admin | 分类:JAVA | 评论:0

发表留言: