@Override
public void doTag() throws JspException, IOException {
JspWriter out = getJspContext().getOut();
String webPropertyId = getWebPropertyId();
if (webPropertyId == null) {
ServletContext sc = ((PageContext) getJspContext()).getServletContext();
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(sc);
context.getAutowireCapableBeanFactory().autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
}
if (webPropertyId.equals("UA-XXXXXXX-X")) {
LOG.warn("googleAnalytics.webPropertyId has not been overridden in a custom property file. Please set this in order to properly use the Google Analytics tag");
}
out.println(analytics(webPropertyId, order));
super.doTag();
}
GoogleAnalyticsTag.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:SparkCore
作者:
评论列表
文章目录