01: package com.opensymphony.webwork.views.velocity.components;
02:
03: import com.opensymphony.webwork.components.ComboBox;
04: import com.opensymphony.webwork.components.Component;
05: import com.opensymphony.xwork.util.OgnlValueStack;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: /**
11: * @see ComboBox
12: */
13: public class ComboBoxDirective extends AbstractDirective {
14: protected Component getBean(OgnlValueStack stack,
15: HttpServletRequest req, HttpServletResponse res) {
16: return new ComboBox(stack, req, res);
17: }
18:
19: public String getBeanName() {
20: return "combobox";
21: }
22: }
|