/** * This methods adds parameters to the current request.<p> * * Parameters added here will be treated like parameters from the * HttpRequest on included pages.<p> * * Remember that the value for a parameter in a HttpRequest is a * String array, not just a simple String. If a parameter added here does * not already exist in the HttpRequest, it will be added. If a parameter * exists, another value will be added to the array of values. If the * value already exists for the parameter, nothing will be added, since a * value can appear only once per parameter.<p> * * @param name the name to add * @param value the value to add * @see org.opencms.jsp.I_CmsJspTagParamParent#addParameter(String, String) */ public void addParameter(String name, String value) { // No null values allowed in parameters if ((name == null) || (value == null)) { return; } // Check if internal map exists, create new one if not if (m_parameterMap == null) { m_parameterMap = new HashMap<String, String[]>(); } addParameter(m_parameterMap, name, value, false); }
/** * Returns the value of <code>{@link #getPage()}</code>.<p> * * @return the value of <code>{@link #getPage()}</code> * @see #getPage() */ public String getFile() { return getPage(); }
/** * Sets the file, same as using <code>setPage()</code>.<p> * * @param file the file to set * @see #setPage(String) */ public void setFile(String file) { setPage(file); }
target = m_target + getSuffix(); } else if (m_property != null) { String prop = cms.readPropertyObject(cms.getRequestContext().getUri(), m_property, true).getValue(); if (prop != null) { target = prop + getSuffix(); String attr = (String)req.getAttribute(m_attribute); if (attr != null) { target = attr + getSuffix(); if (getBodyContent() != null) { body = getBodyContent().getString(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(body)) { target = body + getSuffix(); includeTagAction( pageContext, target, res); release();
includeTagAction(context, target, element, null, editable, true, paramMap, attrMap, req, res); if (cacheable && (element != null)) { addParameter(parameterMap, I_CmsResourceLoader.PARAMETER_ELEMENT, element, true); if (cacheable) { includeActionWithCache(controller, context, target, parameterMap, attributeMap, req, res); } else { includeActionNoCache(controller, context, target, element, locale, req, res);
/** * @see org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider#insertDirectEditIncludes(javax.servlet.jsp.PageContext, org.opencms.workplace.editors.directedit.CmsDirectEditParams) */ public void insertDirectEditIncludes(PageContext context, CmsDirectEditParams params) throws JspException { try { CmsJspTagInclude.includeTagAction( context, m_fileName, DIRECT_EDIT_INCLUDES, false, null, context.getRequest(), context.getResponse()); } catch (Throwable t) { // should never happen throw new JspException(t); } }
target = m_target + getSuffix(); } else if (m_property != null) { String prop = cms.readPropertyObject(cms.getRequestContext().getUri(), m_property, true).getValue(); if (prop != null) { target = prop + getSuffix(); String attr = (String)req.getAttribute(m_attribute); if (attr != null) { target = attr + getSuffix(); if (getBodyContent() != null) { body = getBodyContent().getString(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(body)) { target = body + getSuffix(); includeTagAction(pageContext, target, m_element, null, m_editable, m_cacheable, m_parameterMap, req, res); release(); } else { m_parameterMap = null;
includeTagAction(context, target, element, null, editable, true, paramMap, req, res); if (cacheable && (element != null)) { addParameter(parameterMap, I_CmsResourceLoader.PARAMETER_ELEMENT, element, true); if (cacheable) { includeActionWithCache(controller, context, target, parameterMap, req, res); } else { includeActionNoCache(controller, context, target, element, locale, req, res);
/** * @see org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider#insertDirectEditIncludes(javax.servlet.jsp.PageContext, org.opencms.workplace.editors.directedit.CmsDirectEditParams) */ public void insertDirectEditIncludes(PageContext context, CmsDirectEditParams params) throws JspException { try { CmsJspTagInclude.includeTagAction( context, m_fileName, DIRECT_EDIT_INCLUDES, false, null, null, context.getRequest(), context.getResponse()); } catch (Throwable t) { // should never happen throw new JspException(t); } }
CmsJspTagInclude.includeTagAction( getJspContext(), target,
/** * This methods adds parameters to the current request.<p> * * Parameters added here will be treated like parameters from the * HttpRequest on included pages.<p> * * Remember that the value for a parameter in a HttpRequest is a * String array, not just a simple String. If a parameter added here does * not already exist in the HttpRequest, it will be added. If a parameter * exists, another value will be added to the array of values. If the * value already exists for the parameter, nothing will be added, since a * value can appear only once per parameter.<p> * * @param name the name to add * @param value the value to add * @see org.opencms.jsp.I_CmsJspTagParamParent#addParameter(String, String) */ public void addParameter(String name, String value) { // No null values allowed in parameters if ((name == null) || (value == null)) { return; } // Check if internal map exists, create new one if not if (m_parameterMap == null) { m_parameterMap = new HashMap(); } addParameter(m_parameterMap, name, value, false); }
/** * Returns the value of <code>{@link #getPage()}</code>.<p> * * @return the value of <code>{@link #getPage()}</code> * @see #getPage() */ public String getFile() { return getPage(); }
/** * Sets the file, same as using <code>setPage()</code>.<p> * * @param file the file to set * @see #setPage(String) */ public void setFile(String file) { setPage(file); }
CmsJspTagInclude.includeTagAction( getJspContext(), target,
CmsJspTagInclude.addParameter(parameterMap, I_CmsResourceLoader.PARAMETER_ELEMENT, element, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_TARGET, editTarget, true); CmsJspTagInclude.addParameter( parameterMap, DIRECT_EDIT_PARAM_LOCALE, true); CmsUserSettings settings = new CmsUserSettings(controller.getCmsObject()); CmsJspTagInclude.addParameter( parameterMap, DIRECT_EDIT_PARAM_BUTTONSTYLE, true); if (editElement != null) { CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_ELEMENT, editElement, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_OPTIONS, editOptions, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_NEWLINK, CmsEncoder.encode(createLink), true);
CmsJspTagInclude.includeTagAction( pageContext, formatterSitePath, } else { CmsJspTagInclude.includeTagAction( pageContext, formatter,
CmsJspTagInclude.addParameter(parameterMap, I_CmsResourceLoader.PARAMETER_ELEMENT, element, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_TARGET, editTarget, true); CmsJspTagInclude.addParameter( parameterMap, DIRECT_EDIT_PARAM_LOCALE, true); CmsUserSettings settings = new CmsUserSettings(controller.getCmsObject()); CmsJspTagInclude.addParameter( parameterMap, DIRECT_EDIT_PARAM_BUTTONSTYLE, true); if (editElement != null) { CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_ELEMENT, editElement, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_OPTIONS, editOptions, true); CmsJspTagInclude.addParameter(parameterMap, DIRECT_EDIT_PARAM_NEWLINK, CmsEncoder.encode(createLink), true);
CmsJspTagInclude.includeTagAction( context, cms.getRequestContext().removeSiteRoot(formatter.getJspRootPath()),