KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > TestAction


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork;
6
7 import com.opensymphony.webwork.views.jsp.ui.User;
8 import com.opensymphony.xwork.Action;
9 import com.opensymphony.xwork.ActionSupport;
10
11 import java.util.Collection JavaDoc;
12 import java.util.Map JavaDoc;
13 import java.util.List JavaDoc;
14
15
16 /**
17  * @author Matt Ho <a HREF="mailto:matt@enginegreen.com">&lt;matt@enginegreen.com&gt;</a>
18  * @version $Id: TestAction.java,v 1.12 2004/11/23 16:41:33 mbogaert Exp $
19  */

20 public class TestAction extends ActionSupport {
21     //~ Instance fields ////////////////////////////////////////////////////////
22

23     private Collection JavaDoc collection;
24     private Map JavaDoc map;
25     private String JavaDoc foo;
26     private String JavaDoc result;
27     private User user;
28     private String JavaDoc[] array;
29     private String JavaDoc[][] list;
30     private List JavaDoc list2;
31
32     //~ Methods ////////////////////////////////////////////////////////////////
33
public Collection JavaDoc getCollection() {
34         return collection;
35     }
36
37     public void setCollection(Collection JavaDoc collection) {
38         this.collection = collection;
39     }
40
41     public Map JavaDoc getMap() {
42         return map;
43     }
44
45     public void setMap(Map JavaDoc map) {
46         this.map = map;
47     }
48
49     public String JavaDoc getFoo() {
50         return foo;
51     }
52
53     public void setFoo(String JavaDoc foo) {
54         this.foo = foo;
55     }
56
57     public String JavaDoc getResult() {
58         return result;
59     }
60
61     public void setResult(String JavaDoc result) {
62         this.result = result;
63     }
64
65     public User getUser() {
66         return user;
67     }
68
69     public void setUser(User user) {
70         this.user = user;
71     }
72
73     public String JavaDoc[] getArray() {
74         return array;
75     }
76
77     public void setArray(String JavaDoc[] array) {
78         this.array = array;
79     }
80
81     public String JavaDoc[][] getList() {
82         return list;
83     }
84
85     public void setList(String JavaDoc[][] list) {
86         this.list = list;
87     }
88
89     public List JavaDoc getList2() {
90         return list2;
91     }
92
93     public void setList2(List JavaDoc list2) {
94         this.list2 = list2;
95     }
96
97     public String JavaDoc execute() throws Exception JavaDoc {
98         if (result == null) {
99             result = Action.SUCCESS;
100         }
101
102         return result;
103     }
104 }
105
Popular Tags