⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 choosequerytag.java

📁 OLAP 的客户端代码
💻 JAVA
字号:
package com.tonbeller.jpivot.tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import org.apache.log4j.Logger;

/**
 * If you have multiple queries in the session with different <code>queryName</code> attribute,
 * this tag chooses the visible one.
 * 
 * @author av
 * @since 16.02.2005
 */
public class ChooseQueryTag extends TagSupport {
  String queryName;
  private static final Logger logger = Logger.getLogger(ChooseQueryTag.class);

  public int doStartTag() throws JspException {
    OlapModelProxy omp = OlapModelProxy.instance(id, pageContext.getSession());
    try {
      omp.showByName(queryName);
    } catch (Exception e) {
      logger.error(null, e);
      throw new JspException(e);
    }
    return super.doStartTag();
  }
  public void setQueryName(String queryName) {
    this.queryName = queryName;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -