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.Debug;
09: import com.opensymphony.xwork.util.OgnlValueStack;
10:
11: import javax.servlet.http.HttpServletRequest;
12: import javax.servlet.http.HttpServletResponse;
13:
14: /**
15: * <code>DebugDirective</code>
16: *
17: * @author <a href="mailto:hermanns@aixcept.de">Rainer Hermanns</a>
18: * @version $Id: DebugDirective.java 2034 2006-01-26 17:28:35Z rainerh $
19: */
20: public class DebugDirective extends AbstractDirective {
21: public String getBeanName() {
22: return "debug";
23: }
24:
25: protected Component getBean(OgnlValueStack stack,
26: HttpServletRequest req, HttpServletResponse res) {
27: return new Debug(stack, req, res);
28: }
29: }
|