01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.jsp.ui;
06:
07: import com.opensymphony.webwork.components.Component;
08: import com.opensymphony.webwork.components.Reset;
09: import com.opensymphony.xwork.util.OgnlValueStack;
10:
11: import javax.servlet.http.HttpServletRequest;
12: import javax.servlet.http.HttpServletResponse;
13:
14: /**
15: * @see com.opensymphony.webwork.components.Reset
16: */
17: public class ResetTag extends AbstractUITag {
18: protected String action;
19: protected String method;
20: protected String align;
21: protected String type;
22:
23: public Component getBean(OgnlValueStack stack,
24: HttpServletRequest req, HttpServletResponse res) {
25: return new Reset(stack, req, res);
26: }
27:
28: protected void populateParams() {
29: super .populateParams();
30:
31: Reset reset = ((Reset) component);
32: reset.setAction(action);
33: reset.setMethod(method);
34: reset.setAlign(align);
35: reset.setType(type);
36: }
37:
38: public void setAction(String action) {
39: this .action = action;
40: }
41:
42: public void setMethod(String method) {
43: this .method = method;
44: }
45:
46: public void setAlign(String align) {
47: this .align = align;
48: }
49:
50: public void setType(String type) {
51: this.type = type;
52: }
53:
54: }
|