1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.struts2.dojo.views.jsp.ui;
23
24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse;
26
27 import org.apache.struts2.components.Component;
28 import org.apache.struts2.dojo.components.Bind;
29
30 import com.opensymphony.xwork2.util.ValueStack;
31
32 public class BindTag extends AbstractValidateTag {
33 protected String targets;
34 protected String sources;
35 protected String events;
36
37 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
38 return new Bind(stack, req, res);
39 }
40
41 protected void populateParams() {
42 super.populateParams();
43
44 Bind bind = (Bind) component;
45 bind.setTargets(targets);
46 bind.setSources(sources);
47 bind.setEvents(events);
48 }
49
50 public void setEvents(String events) {
51 this.events = events;
52 }
53
54 public void setSources(String sources) {
55 this.sources = sources;
56 }
57
58 public void setTargets(String targets) {
59 this.targets = targets;
60 }
61 }