1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts2.views.jsp.ui;
22
23 import javax.servlet.http.HttpServletRequest;
24 import javax.servlet.http.HttpServletResponse;
25
26 import org.apache.struts2.components.Component;
27 import org.apache.struts2.components.Reset;
28
29 import com.opensymphony.xwork2.util.ValueStack;
30
31 /***
32 * @see org.apache.struts2.components.Reset
33 */
34 public class ResetTag extends AbstractUITag {
35
36 private static final long serialVersionUID = 4742704832277392108L;
37
38 protected String action;
39 protected String method;
40 protected String align;
41 protected String type;
42
43 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
44 return new Reset(stack, req, res);
45 }
46
47 protected void populateParams() {
48 super.populateParams();
49
50 Reset reset = ((Reset) component);
51 reset.setAction(action);
52 reset.setMethod(method);
53 reset.setAlign(align);
54 reset.setType(type);
55 }
56
57 public void setAction(String action) {
58 this.action = action;
59 }
60
61 public void setMethod(String method) {
62 this.method = method;
63 }
64
65 public void setAlign(String align) {
66 this.align = align;
67 }
68
69 public void setType(String type) {
70 this.type = type;
71 }
72
73 }