1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.Attach;
9 import gboat2.base.view.components.AttachSequence;
10
11 import javax.servlet.http.HttpServletRequest;
12 import javax.servlet.http.HttpServletResponse;
13
14 import org.apache.struts2.components.Component;
15 import org.apache.struts2.views.jsp.ui.AbstractUITag;
16
17 import com.opensymphony.xwork2.util.ValueStack;
18
19
20
21
22
23
24
25 public class AttachSequenceTag extends AbstractUITag {
26
27 private static final long serialVersionUID = 1904115256861121844L;
28
29 protected String attachMap;
30 protected String downloadUrl;
31
32 @Override
33 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
34 return new AttachSequence(stack, req, res);
35 }
36
37 @Override
38 protected void populateParams() {
39 super.populateParams();
40 GboatViewUtil.populateParams(this, component);
41 }
42
43 public void setAttachMap(String attachMap) {
44 this.attachMap = attachMap;
45 }
46
47 public void setDownloadUrl(String downloadUrl) {
48 this.downloadUrl = downloadUrl;
49 }
50
51 }