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.freemarker.tags;
22
23 import javax.servlet.http.HttpServletRequest;
24 import javax.servlet.http.HttpServletResponse;
25
26 import org.apache.struts2.components.ActionComponent;
27 import org.apache.struts2.components.Component;
28 import org.apache.struts2.dispatcher.Dispatcher;
29
30 import com.opensymphony.xwork2.ActionProxyFactory;
31 import com.opensymphony.xwork2.config.Configuration;
32 import com.opensymphony.xwork2.inject.Container;
33 import com.opensymphony.xwork2.util.ValueStack;
34
35 /***
36 * @see ActionComponent
37 */
38 public class ActionModel extends TagModel {
39 public ActionModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
40 super(stack, req, res);
41 }
42
43 protected Component getBean() {
44 return new ActionComponent(stack, req, res);
45 }
46 }