List of usage examples for javax.servlet.jsp.tagext Tag EVAL_PAGE
int EVAL_PAGE
To view the source code for javax.servlet.jsp.tagext Tag EVAL_PAGE.
Click Source Link
From source file:com.googlecode.spring.appengine.taglib.RuntimeVersionTag.java
@Override public int doEndTag() throws JspException { String version = SystemProperty.version.get(); if (var == null) { try {/*from w ww . j a v a2s .com*/ pageContext.getOut().print(version); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, version, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.RuntimeEnvironmentTag.java
@Override public int doEndTag() throws JspException { String environment = SystemProperty.environment.get(); if (var == null) { try {/*from w w w .ja va 2 s .c o m*/ pageContext.getOut().print(environment); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, environment, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.ApplicationIdTag.java
@Override public int doEndTag() throws JspException { String applicationId = SystemProperty.applicationId.get(); if (var == null) { try {// w ww .jav a 2 s. com pageContext.getOut().print(applicationId); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, applicationId, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.LogoutUrlTag.java
@Override public int doEndTag() throws JspException { String loginUrl = UserServiceFactory.getUserService().createLogoutURL(destinationUrl); if (var == null) { try {/*from w w w . j a va 2s . c o m*/ pageContext.getOut().print(loginUrl); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, loginUrl, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.InstanceIdTag.java
@Override public int doEndTag() throws JspException { Object instanceId = ApiProxy.getCurrentEnvironment().getAttributes() .get("com.google.appengine.instance.id"); if (var == null) { try {/*w w w. ja va 2 s.c om*/ if (instanceId != null) { pageContext.getOut().print(instanceId); } } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, instanceId, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.LoginUrlTag.java
@Override public int doEndTag() throws JspException { String loginUrl = UserServiceFactory.getUserService().createLoginURL(destinationUrl, federatedIdentity); if (var == null) { try {//from w w w . ja va 2s. c o m pageContext.getOut().print(loginUrl); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, loginUrl, scope); } return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.ApplicationVersionTag.java
@Override public int doEndTag() throws JspException { String applicationVersion = SystemProperty.applicationVersion.get(); if (ignoreMinorVersion) { if (applicationVersion.contains(".")) { applicationVersion = applicationVersion.substring(0, applicationVersion.lastIndexOf(".")); }// w ww . ja va2s . c o m } if (var == null) { try { pageContext.getOut().print(applicationVersion); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, applicationVersion, scope); } return Tag.EVAL_PAGE; }
From source file:com.jaspersoft.jasperserver.war.tags.ListReportsTag.java
public int doEndTag() { return Tag.EVAL_PAGE; }
From source file:com.googlecode.spring.appengine.taglib.UserTag.java
@Override public int doEndTag() throws JspException { Object result = null;/*from w w w . j a v a2 s . co m*/ if (property != null) { User user = UserServiceFactory.getUserService().getCurrentUser(); if (user != null) { try { BeanWrapperImpl wrapper = new BeanWrapperImpl(user); result = wrapper.getPropertyValue(property); } catch (BeansException e) { throw new JspException(e); } } } if (var == null) { try { pageContext.getOut().print(result); } catch (IOException e) { throw new JspException(e); } } else { pageContext.setAttribute(var, result, scope); } return Tag.EVAL_PAGE; }
From source file:de.micromata.genome.gwiki.web.tags.GWikiMacroTag.java
public int doEndTag() throws JspException { GWikiContext wikiContext = getWikiContext(); Map<String, GWikiMacroFactory> mfm = wikiContext.getWikiWeb().getWikiConfig().getWikiMacros(wikiContext); GWikiMacroFactory fac = mfm.get(name); if (fac == null) { GWikiTagRenderUtils.write(pageContext, wikiContext.getTranslated("gwiki.web.tags.macrotag.unknown") + " " + name); return Tag.EVAL_PAGE; }//from w ww . j a v a2 s. c om GWikiMacro macro = fac.createInstance(); if ((macro instanceof GWikiRuntimeMacro) == false) { GWikiTagRenderUtils.write(pageContext, wikiContext.getTranslated("gwiki.web.tags.macrotag.runtime") + " " + name); return Tag.EVAL_PAGE; } String t = name; if (StringUtils.isNotBlank(args) == true) { t = name + ":" + args; } MacroAttributes attributes = new MacroAttributes(t); GWikiRuntimeMacro rtm = (GWikiRuntimeMacro) macro; if (macro.hasBody() == true && StringUtils.isNotEmpty(saveBody) == true) { attributes.setChildFragment(new GWikiFragmentChildContainer(WikiParserUtils.parseText(saveBody, mfm))); } else { attributes.setChildFragment(new GWikiFragmentChildContainer()); } rtm.render(attributes, wikiContext); return Tag.EVAL_PAGE; }