01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: /*
06: * WebWork, Web Application Framework
07: *
08: * Distributable under Apache license.
09: * See terms of license at opensource.org
10: */
11: package com.opensymphony.webwork.views.jsp;
12:
13: import com.opensymphony.webwork.components.Component;
14: import com.opensymphony.webwork.components.Include;
15: import com.opensymphony.xwork.util.OgnlValueStack;
16:
17: import javax.servlet.http.HttpServletRequest;
18: import javax.servlet.http.HttpServletResponse;
19:
20: /**
21: * @see Include
22: */
23: public class IncludeTag extends ComponentTagSupport {
24: protected String value;
25:
26: public Component getBean(OgnlValueStack stack,
27: HttpServletRequest req, HttpServletResponse res) {
28: return new Include(stack, req, res);
29: }
30:
31: protected void populateParams() {
32: super .populateParams();
33:
34: ((Include) component).setValue(value);
35: }
36:
37: public void setValue(String value) {
38: this.value = value;
39: }
40: }
|