1 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 ; 12 import java.util.Map ; 13 import java.util.List ; 14 15 16 20 public class TestAction extends ActionSupport { 21 23 private Collection collection; 24 private Map map; 25 private String foo; 26 private String result; 27 private User user; 28 private String [] array; 29 private String [][] list; 30 private List list2; 31 32 public Collection getCollection() { 34 return collection; 35 } 36 37 public void setCollection(Collection collection) { 38 this.collection = collection; 39 } 40 41 public Map getMap() { 42 return map; 43 } 44 45 public void setMap(Map map) { 46 this.map = map; 47 } 48 49 public String getFoo() { 50 return foo; 51 } 52 53 public void setFoo(String foo) { 54 this.foo = foo; 55 } 56 57 public String getResult() { 58 return result; 59 } 60 61 public void setResult(String 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 [] getArray() { 74 return array; 75 } 76 77 public void setArray(String [] array) { 78 this.array = array; 79 } 80 81 public String [][] getList() { 82 return list; 83 } 84 85 public void setList(String [][] list) { 86 this.list = list; 87 } 88 89 public List getList2() { 90 return list2; 91 } 92 93 public void setList2(List list2) { 94 this.list2 = list2; 95 } 96 97 public String execute() throws Exception { 98 if (result == null) { 99 result = Action.SUCCESS; 100 } 101 102 return result; 103 } 104 } 105 | Popular Tags |