KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.param;
14
15 import javax.servlet.jsp.JspException JavaDoc;
16
17 /**
18  * Tag nested inside a ParamLinkTag. Adds a new SqlSessionParam to the parent tag.
19  *
20  * @author av
21  */

22 public class ParamLinkParamTag extends ParamLinkNestedTag {
23   String JavaDoc paramName;
24   String JavaDoc displayValue;
25   String JavaDoc displayName;
26   String JavaDoc sqlValue;
27   String JavaDoc mdxValue;
28   String JavaDoc textValue;
29
30   //private static Logger logger = Logger.getLogger(ParamLinkParamTag.class);
31

32   public int doStartTag() throws JspException JavaDoc {
33     ParamLinkTag link = getParamLinkTag();
34     link.addParam(paramName, displayName, displayValue, sqlValue, mdxValue, textValue);
35     return EVAL_BODY_INCLUDE;
36   }
37
38   public void setDisplayName(String JavaDoc displayName) {
39     this.displayName = displayName;
40   }
41
42   public void setDisplayValue(String JavaDoc displayValue) {
43     this.displayValue = displayValue;
44   }
45
46   public void setMdxValue(String JavaDoc mdxValue) {
47     this.mdxValue = mdxValue;
48   }
49
50   public void setParamName(String JavaDoc paramName) {
51     this.paramName = paramName;
52   }
53
54   public void setSqlValue(String JavaDoc sqlValue) {
55     this.sqlValue = sqlValue;
56   }
57   
58   public String JavaDoc getTextValue() {
59     return textValue;
60   }
61   
62   public void setTextValue(String JavaDoc textValue) {
63     this.textValue = textValue;
64   }
65 }
Popular Tags