/** * @see javax.servlet.jsp.tagext.TagSupport#doEndTag() */ @Override public int doEndTag() throws JspException { if (CmsFlexController.isCmsRequest(pageContext.getRequest()) && CmsJsonPartFilter.isJsonRequest(pageContext.getRequest())) { try { pageContext.getOut().write(CmsJsonPart.END); m_needEnd = false; } catch (IOException e) { throw new JspException(e); } } return EVAL_PAGE; }
/** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws javax.servlet.jsp.JspException { javax.servlet.ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String result = userTagAction(m_property, req); // Return value of selected property pageContext.getOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "user"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
/** * @see javax.servlet.jsp.tagext.TagSupport#doStartTag() */ @Override public int doStartTag() throws JspException { if (null != findAncestorWithClass(this, CmsJspTagJsonPart.class)) { throw new JspException("cms:jsonpart tag must not be nested!"); } if (CmsFlexController.isCmsRequest(pageContext.getRequest()) && CmsJsonPartFilter.isJsonRequest(pageContext.getRequest())) { try { pageContext.getOut().write(CmsJsonPart.getHeader(getElement())); m_needEnd = true; } catch (IOException e) { throw new JspException(e); } } return EVAL_BODY_INCLUDE; }
/** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String result = infoTagAction(m_property, (HttpServletRequest)req); // Return value of selected property pageContext.getOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "info"), ex); } throw new JspException(ex); } } return SKIP_BODY; }
/** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws javax.servlet.jsp.JspException { javax.servlet.ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String result = userTagAction(m_property, req); // Return value of selected property pageContext.getOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "user"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
/** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String result = infoTagAction(m_property, (HttpServletRequest)req); // Return value of selected property pageContext.getOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "info"), ex); } throw new JspException(ex); } } return SKIP_BODY; }
/** * @return SKIP_BODY * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String setting = elementSettingTagAction(getName(), m_defaultValue, m_escapeHtml, req); // Make sure that no null String is returned if (setting == null) { setting = ""; } pageContext.getOut().print(setting); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "elementSetting"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
/** * @return SKIP_BODY * @throws JspException in case somethins goes wrong * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String prop = propertyTagAction(getName(), getFile(), m_defaultValue, m_escapeHtml, req); // Make sure that no null String is returned if (prop == null) { prop = ""; } pageContext.getOut().print(prop); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "property"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
/** * @return SKIP_BODY * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String prop = propertyTagAction(getName(), getFile(), m_defaultValue, m_escapeHtml, req, m_locale); // Make sure that no null String is returned if (prop == null) { prop = ""; } pageContext.getOut().print(prop); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "property"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
if (CmsFlexController.isCmsRequest(req)) {
if (CmsFlexController.isCmsRequest(req)) {
/** * @see javax.servlet.jsp.tagext.IterationTag#doAfterBody() */ @Override public int doAfterBody() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { // Get label string from the body and reset body BodyContent body = this.getBodyContent(); String label = body.getString(); body.clearBody(); // Get the result... String result = wpLabelTagAction(label, req); this.getPreviousOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "label"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
if (CmsFlexController.isCmsRequest(req)) {
/** * @see javax.servlet.jsp.tagext.IterationTag#doAfterBody() */ @Override public int doAfterBody() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { // Get label string from the body and reset body BodyContent body = getBodyContent(); String label = body.getString(); body.clearBody(); // Get the result... String result = wpLabelTagAction(label, req); getPreviousOut().print(result); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "label"), ex); } throw new javax.servlet.jsp.JspException(ex); } } return SKIP_BODY; }
if (CmsFlexController.isCmsRequest(req)) {
if (CmsFlexController.isCmsRequest(req)) { try {
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() * @return EVAL_PAGE * @throws JspException in case something goes wrong */ @Override public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String content = decorateTagAction(getBodyContent().getString(), getFile(), getLocale(), req); getBodyContent().clear(); getBodyContent().print(content); getBodyContent().writeOut(pageContext.getOut()); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "decoration"), ex); } throw new JspException(ex); } } return EVAL_PAGE; }
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() * @return EVAL_PAGE * @throws JspException in case soemthing goes wrong */ @Override public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { String content = decorateTagAction(getBodyContent().getString(), getFile(), getLocale(), req); getBodyContent().clear(); getBodyContent().print(content); getBodyContent().writeOut(pageContext.getOut()); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "decoration"), ex); } throw new JspException(ex); } } return EVAL_PAGE; }
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() * * @return EVAL_PAGE * * @throws JspException in case something goes wrong */ @Override public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { try { // Get link-string from the body and reset body String link = getBodyContent().getString(); getBodyContent().clear(); // Calculate the link substitution String newlink = linkTagAction(link, req, getBaseUri(), getDetailPage(), m_locale); // Write the result back to the page getBodyContent().print(newlink); getBodyContent().writeOut(pageContext.getOut()); } catch (Exception ex) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "link"), ex); } throw new JspException(ex); } } return EVAL_PAGE; }
if (CmsFlexController.isCmsRequest(request)) {