KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > param > PushParamTag


1 package com.tonbeller.wcf.param;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4
5 import org.apache.log4j.Logger;
6
7 /**
8  * Overrides a session param between start and end tag. After the end tag
9  * was processed, the param is restored.
10  *
11  * @author av
12  * @since 18.02.2005
13  */

14 public class PushParamTag extends SetParamTagBase {
15   
16   public static final Logger logger = Logger.getLogger(PushParamTag.class);
17   
18   public int doEndTag() throws JspException JavaDoc {
19     SessionParamPool pool = SessionParamPool.instance(pageContext);
20     pool.setParam(oldParam);
21     oldParam = newParam = null;
22     return super.doEndTag();
23   }
24   
25 }
26
Popular Tags