📄 testaction.java
字号:
/*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package org.softme.jworks;
import com.opensymphony.xwork.Action;
import com.opensymphony.xwork.ActionSupport;
import java.util.Collection;
import java.util.Map;
import org.apache.turbine.om.security.User;
/**
* @author Matt Ho <a href="mailto:matt@enginegreen.com"><matt@enginegreen.com></a>
* @version $Id: TestAction.java,v 1.1.1.1 2004/08/20 05:58:00 brokendoor Exp $
*/
public class TestAction extends ActionSupport {
//~ Instance fields ////////////////////////////////////////////////////////
private Collection collection;
private Map map;
private String foo;
private String result;
private User m_user;
private String[] array;
private String[][] list;
//~ Methods ////////////////////////////////////////////////////////////////
public void setArray(String[] array) {
this.array = array;
}
public String[] getArray() {
return array;
}
public void setCollection(Collection collection) {
this.collection = collection;
}
public Collection getCollection() {
return collection;
}
public void setFoo(String foo) {
this.foo = foo;
}
public String getFoo() {
return foo;
}
public void setList(String[][] list) {
this.list = list;
}
public String[][] getList() {
return list;
}
public void setMap(Map map) {
this.map = map;
}
public Map getMap() {
return map;
}
public void setResult(String result) {
this.result = result;
}
public String getResult() {
return result;
}
public void setUser(User user) {
m_user = user;
}
public User getUser() {
return m_user;
}
public String execute() throws Exception {
if (result == null) {
result = Action.SUCCESS;
}
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -