KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.opensymphony.webwork.views.velocity.components;
2
3 import com.opensymphony.webwork.components.Component;
4 import com.opensymphony.webwork.components.Label;
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:56:25 AM
14  */

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