1 package com.tonbeller.wcf.param; 2 3 import javax.servlet.jsp.JspException ; 4 import javax.servlet.jsp.tagext.TagSupport ; 5 6 10 public class ParamSqlMappingTag extends TagSupport { 11 String column; 12 String qname; 13 14 public void setQname(String qname) { 15 this.qname = qname; 16 } 17 public void setColumn(String column) { 18 this.column = column; 19 } 20 21 public int doStartTag() throws JspException { 22 ParamSqlTag tag = (ParamSqlTag) findAncestorWithClass(this, ParamSqlTag.class); 23 if (tag == null) 24 throw new JspException ("paramSqlMapping tag must be nested in a paramSql tag"); 25 tag.setMapping(column, qname); 26 return EVAL_BODY_INCLUDE; 27 } 28 29 } | Popular Tags |