001: /*
002: * Copyright (c) 2002-2003 by OpenSymphony
003: * All rights reserved.
004: */
005: package com.opensymphony.webwork;
006:
007: import com.opensymphony.webwork.views.jsp.ui.User;
008: import com.opensymphony.xwork.Action;
009: import com.opensymphony.xwork.ActionSupport;
010:
011: import java.util.Collection;
012: import java.util.List;
013: import java.util.Map;
014:
015: /**
016: * @author Matt Ho <a href="mailto:matt@enginegreen.com"><matt@enginegreen.com></a>
017: * @version $Id: TestAction.java 2486 2006-03-19 11:33:55Z davsclaus $
018: */
019: public class TestAction extends ActionSupport {
020:
021: private Collection collection;
022: private Collection collection2;
023: private Map map;
024: private String foo;
025: private String result;
026: private User user;
027: private String[] array;
028: private String[][] list;
029: private List list2;
030: private List list3;
031:
032: public Collection getCollection() {
033: return collection;
034: }
035:
036: public void setCollection(Collection collection) {
037: this .collection = collection;
038: }
039:
040: public Map getMap() {
041: return map;
042: }
043:
044: public void setMap(Map map) {
045: this .map = map;
046: }
047:
048: public String getFoo() {
049: return foo;
050: }
051:
052: public void setFoo(String foo) {
053: this .foo = foo;
054: }
055:
056: public String getResult() {
057: return result;
058: }
059:
060: public void setResult(String result) {
061: this .result = result;
062: }
063:
064: public User getUser() {
065: return user;
066: }
067:
068: public void setUser(User user) {
069: this .user = user;
070: }
071:
072: public String[] getArray() {
073: return array;
074: }
075:
076: public void setArray(String[] array) {
077: this .array = array;
078: }
079:
080: public String[][] getList() {
081: return list;
082: }
083:
084: public void setList(String[][] list) {
085: this .list = list;
086: }
087:
088: public List getList2() {
089: return list2;
090: }
091:
092: public void setList2(List list2) {
093: this .list2 = list2;
094: }
095:
096: public void setList3(List list) {
097: this .list3 = list;
098: }
099:
100: public List getList3() {
101: return this .list3;
102: }
103:
104: public Collection getCollection2() {
105: return this .collection2;
106: }
107:
108: public void setCollection2(Collection collection) {
109: this .collection2 = collection;
110: }
111:
112: public String execute() throws Exception {
113: if (result == null) {
114: result = Action.SUCCESS;
115: }
116:
117: return result;
118: }
119:
120: public String doInput() throws Exception {
121: return INPUT;
122: }
123:
124: }
|