View Javadoc

1   /*
2    * Created on 2004/09/26
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  	 * public void setMap(Map aMap) { values = aMap; } public Map getMap() {
26  	 * return values; }
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  		 * setValue("searchCriteria", "Bill Clinton"); setValue("searchType",
39  		 * "Advanced"); arg1.setAttribute( "TOP_MAP",values);
40  		 */
41  
42  	}
43  
44  }