1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts2.views.jsp.ui;
22
23 import javax.servlet.http.HttpServletRequest;
24 import javax.servlet.http.HttpServletResponse;
25
26 import org.apache.struts2.components.Component;
27 import org.apache.struts2.components.Head;
28
29 import com.opensymphony.xwork2.util.ValueStack;
30
31 /***
32 * @see Head
33 */
34 public class HeadTag extends AbstractUITag {
35
36 private static final long serialVersionUID = 6876765769175246030L;
37
38 private String calendarcss;
39 private String debug;
40
41 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
42 return new Head(stack, req, res);
43 }
44
45 protected void populateParams() {
46 super.populateParams();
47 if (calendarcss != null) {
48 ((Head) component).setCalendarcss(calendarcss);
49 }
50 if (debug != null) {
51 ((Head) component).setDebug(Boolean.valueOf(debug).booleanValue());
52 }
53 }
54
55 public String getCalendarcss() {
56 return calendarcss;
57 }
58
59 public void setCalendarcss(String calendarcss) {
60 this.calendarcss = calendarcss;
61 }
62
63 public void setDebug(String debug) {
64 this.debug = debug;
65 }
66 }