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