01: package com.opensymphony.webwork.views.velocity.components;
02:
03: import com.opensymphony.webwork.components.Component;
04: import com.opensymphony.webwork.components.Div;
05: import com.opensymphony.xwork.util.OgnlValueStack;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: /**
11: * @see Div
12: */
13: public class DivDirective extends AbstractDirective {
14: public String getBeanName() {
15: return "div";
16: }
17:
18: protected Component getBean(OgnlValueStack stack,
19: HttpServletRequest req, HttpServletResponse res) {
20: return new Div(stack, req, res);
21: }
22:
23: /**
24: * A Div component, is really a Block element, hence overriding here to
25: * return a BLOCK.
26: */
27: public int getType() {
28: return BLOCK;
29: }
30: }
|