01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.velocity.components;
06:
07: import com.opensymphony.webwork.components.Component;
08: import com.opensymphony.webwork.components.Tree;
09: import com.opensymphony.xwork.util.OgnlValueStack;
10:
11: import javax.servlet.http.HttpServletRequest;
12: import javax.servlet.http.HttpServletResponse;
13:
14: /**
15: * <code>TreeDirective</code>
16: *
17: * @author Rainer Hermanns
18: * @version $Id: TreeDirective.java 2035 2006-01-26 17:37:43Z rainerh $
19: */
20: public class TreeDirective extends AbstractDirective {
21: public String getBeanName() {
22: return "tree";
23: }
24:
25: protected Component getBean(OgnlValueStack stack,
26: HttpServletRequest req, HttpServletResponse res) {
27: return new Tree(stack, req, res);
28: }
29: }
|