KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > views > velocity > components > CheckBoxDirective


1 package com.opensymphony.webwork.views.velocity.components;
2
3 import com.opensymphony.webwork.components.Checkbox;
4 import com.opensymphony.webwork.components.Component;
5 import com.opensymphony.xwork.util.OgnlValueStack;
6
7 import javax.servlet.http.HttpServletRequest JavaDoc;
8 import javax.servlet.http.HttpServletResponse JavaDoc;
9
10 /**
11  * User: patrick
12  * Date: Aug 5, 2005
13  * Time: 8:58:09 AM
14  */

15 public class CheckBoxDirective extends AbstractDirective {
16     protected Component getBean(OgnlValueStack stack, HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc res) {
17         return new Checkbox(stack, req, res);
18     }
19
20     public String JavaDoc getBeanName() {
21         return "checkbox";
22     }
23 }
24
Popular Tags