⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helloworldaction.java

📁 精通EJB3源码
💻 JAVA
字号:
package com.foshanshop.struts;

import com.foshanshop.ejb3.HelloWorld;
import com.opensymphony.xwork2.ActionSupport;

public class HelloWorldAction extends ActionSupport{
	private static final long serialVersionUID = 6798976589116258756L;
	private HelloWorld hello;
	private String outMessage;
	public String getOutMessage() {
		return outMessage;
	}
	public void setOutMessage(String outMessage) {
		this.outMessage = outMessage;
	}
	public void setHello(HelloWorld hello) {
		this.hello = hello;
	}
	@Override
	public String execute() throws Exception {
		setOutMessage(hello.SayHello("Struts2+Spring+EJB3.0"));
		return SUCCESS;//该常量值为:"success"
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -