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

📄 helloaction.java

📁 这是一个轻便的j2ee的web应用框架,是一个在多个项目中运用的实际框架,采用struts,hebinate,xml等技术,有丰富的tag,role,navigation,session,dictio
💻 JAVA
字号:
package com.esimple.demo.hello;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.esimple.framework.web.action.BaseAction;
import com.esimple.framework.web.action.BaseForm;

/**
 * a hello world example for esimple framework
 * @author steven
 *
 */

public final class HelloAction extends BaseAction {
	private HelloBean support;
	public void setSupport(HelloBean support){
		this.support =support;
	}	
	
    public String execute(
				 BaseForm form,
				 HttpServletRequest request,
				 HttpServletResponse response)
	throws Exception {
		form.printValues();
		String userName = form.getValueAsString("name",true);
		form.setValue("username",support.sayHello(userName));	
		return  FORWARD_SUCCESS ;
    }
}

⌨️ 快捷键说明

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