01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.velocity.components;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: import com.opensymphony.webwork.components.Component;
11: import com.opensymphony.webwork.components.RichTextEditor;
12: import com.opensymphony.xwork.util.OgnlValueStack;
13:
14: /**
15: * @author tm_jee
16: * @version $Date: 2006-02-18 06:29:27 +0100 (Sat, 18 Feb 2006) $ $Id: RichTextEditorDirective.java 2210 2006-02-18 05:29:27Z tmjee $
17: * @see RichTextEditor
18: */
19: public class RichTextEditorDirective extends AbstractDirective {
20:
21: public String getBeanName() {
22: return "richtexteditor";
23: }
24:
25: protected Component getBean(OgnlValueStack stack,
26: HttpServletRequest req, HttpServletResponse res) {
27: return new RichTextEditor(stack, req, res);
28: }
29: }
|