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.OptGroup;
12: import com.opensymphony.xwork.util.OgnlValueStack;
13:
14: /**
15: *
16: * @author tm_jee
17: * @version $Date: 2006-07-07 19:10:06 +0200 (Fri, 07 Jul 2006) $ $Id: OptGroupDirective.java 2634 2006-07-07 17:10:06Z tmjee $
18: */
19: public class OptGroupDirective extends AbstractDirective {
20:
21: protected Component getBean(OgnlValueStack stack,
22: HttpServletRequest req, HttpServletResponse res) {
23: return new OptGroup(stack, req, res);
24: }
25:
26: public String getBeanName() {
27: return "optgroup";
28: }
29: }
|