1 /*
2 * ContextTag.java
3 *
4 * $Author: mballesteros $ $Date: 2003/12/29 16:36:34 $ $Revision: 1.1 $
5 */
6 package net.sf.ewc.taglib;
7
8 /***
9 * {@link ContextTag}sets a new context into the context stack. EWC tags
10 * within this one will evaluate their expression on this new context.
11 *
12 * @author mballesteros
13 */
14 public class ContextTag extends EWCTag {
15
16 /***
17 * The context classname
18 */
19 private String className;
20
21 /***
22 * The context classname
23 *
24 * @return The context classname
25 */
26 public String getClassName() {
27 return className;
28 }
29
30 /***
31 * Sets the context classname
32 *
33 * @param className
34 * The context classname
35 */
36 public void setClassName(String className) {
37 this.className = className;
38 }
39
40 /***
41 * Main constructor
42 */
43 public ContextTag() {
44 super();
45 }
46
47 /***
48 * @return
49 */
50 public int doStartTag() {
51 pushCtx(className);
52 return EVAL_BODY_INCLUDE;
53 }
54
55 /***
56 * @return
57 */
58 public int doEndTag() {
59 popCtx();
60 return EVAL_PAGE;
61 }
62
63 }
This page was automatically generated by Maven