1 package com.tonbeller.jpivot.tags; 2 3 import javax.servlet.jsp.JspException ; 4 import javax.servlet.jsp.tagext.TagSupport ; 5 6 import org.apache.log4j.Logger; 7 8 15 public class ChooseQueryTag extends TagSupport { 16 String queryName; 17 private static final Logger logger = Logger.getLogger(ChooseQueryTag.class); 18 19 public int doStartTag() throws JspException { 20 OlapModelProxy omp = OlapModelProxy.instance(id, pageContext.getSession()); 21 try { 22 omp.showByName(queryName); 23 } catch (Exception e) { 24 logger.error(null, e); 25 throw new JspException (e); 26 } 27 return super.doStartTag(); 28 } 29 public void setQueryName(String queryName) { 30 this.queryName = queryName; 31 } 32 } 33 | Popular Tags |