1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.StaticComponents;
9
10 import javax.servlet.http.HttpServletRequest;
11 import javax.servlet.http.HttpServletResponse;
12
13 import org.apache.struts2.components.Component;
14 import org.apache.struts2.views.jsp.ui.AbstractUITag;
15
16 import com.opensymphony.xwork2.util.ValueStack;
17
18
19
20
21
22
23
24 public class StaticComponentsTag extends AbstractUITag {
25
26 private static final long serialVersionUID = -1;
27
28
29 protected String names;
30
31
32 protected String devMode = "false";
33
34 protected String withDependency = "false";
35
36 protected String path;
37
38 @Override
39 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
40 return new StaticComponents(stack, req, res);
41 }
42
43 @Override
44 protected void populateParams() {
45 super.populateParams();
46 GboatViewUtil.populateParams(this, component);
47 }
48
49 public String getNames() {
50 return names;
51 }
52
53 public void setNames(String names) {
54 this.names = names;
55 }
56
57 public String getDevMode() {
58 return devMode;
59 }
60
61 public void setDevMode(String devMode) {
62 this.devMode = devMode;
63 }
64
65 public String getWithDependency() {
66 return withDependency;
67 }
68
69 public void setWithDependency(String withDependency) {
70 this.withDependency = withDependency;
71 }
72
73 public String getPath() {
74 return path;
75 }
76
77 public void setPath(String path) {
78 this.path = path;
79 }
80
81
82 }