/** * @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; }
break; case 10: // opencms.title result = getTitleInfo(controller, req); break; case 11: // opencms.description result = getDescriptionInfo(controller, req); break; case 12: // opencms.keywords result = getKeywordsInfo(controller, req); break; default:
/** * @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; }
/** * Returns an OpenCms or JVM system info property value, same as using * the <code><cms:info property="***" /></code> tag.<p> * * See the description of the class {@link CmsJspTagInfo} for a detailed list * of available options for the property value.<p> * * @param property the property to look up * @return String the value of the system property * @see org.opencms.jsp.CmsJspTagInfo */ public String info(String property) { try { return CmsJspTagInfo.infoTagAction(property, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container(Messages.GUI_ERR_INFO_PROP_READ_1, property); return getMessage(msgContainer); }
/** * Returns an OpenCms or JVM system info property value, same as using * the <code><cms:info property="***" /></code> tag.<p> * * See the description of the class {@link CmsJspTagInfo} for a detailed list * of available options for the property value.<p> * * @param property the property to look up * @return String the value of the system property * @see org.opencms.jsp.CmsJspTagInfo */ public String info(String property) { try { return CmsJspTagInfo.infoTagAction(property, getRequest()); } catch (Throwable t) { handleException(t); } CmsMessageContainer msgContainer = Messages.get().container(Messages.GUI_ERR_INFO_PROP_READ_1, property); return getMessage(msgContainer); }