1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.components.Overlay;
4
5 import javax.servlet.http.HttpServletRequest;
6 import javax.servlet.http.HttpServletResponse;
7
8 import org.apache.struts2.components.Component;
9 import org.apache.struts2.views.jsp.ComponentTagSupport;
10
11 import com.opensymphony.xwork2.util.ValueStack;
12
13
14
15
16
17
18
19
20 public class OverlayTag extends ComponentTagSupport {
21
22 private static final long serialVersionUID = 1L;
23
24
25 protected String id;
26
27 @Override
28 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
29 return new Overlay(stack, req);
30 }
31
32 @Override
33 protected void populateParams() {
34 super.populateParams();
35 ((Overlay)component).setId(id);
36 }
37
38 public void setId(String id) {
39 this.id = id;
40 }
41
42 }