1
2
3
4 package org.ieee.shinobu.demo.velocity.shankar;
5
6 import java.util.HashMap;
7 import java.util.Map;
8
9 import javax.servlet.http.HttpServletRequest;
10
11 import org.apache.struts.action.ActionForm;
12 import org.apache.struts.action.ActionMapping;
13
14 /***
15 * @author shinobu
16 */
17 public class DynamicActionForm extends ActionForm {
18 private Map values = new HashMap();
19
20 public DynamicActionForm() {
21 super();
22 }
23
24
25
26
27
28 public void setValue(String key, Object value) {
29 this.values.put(key, value);
30 }
31
32 public Object getValue(String key) {
33 return this.values.get(key);
34 }
35
36 public void reset(ActionMapping arg0, HttpServletRequest arg1) {
37
38
39
40
41
42 }
43
44 }