@Override public int doEndTag() throws JspException { if(name != null){ addParameter("javax.portlet.action", name); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException{ if(copyCurrentRenderParameters){ /*prepend current render parameters*/ doCopyCurrentRenderParameters(); } return super.doEndTag(); }
@Override public int doStartTag() throws JspException { BaseURLTag urlTag = (BaseURLTag) findAncestorWithClass(this, BaseURLTag.class); if (urlTag == null) { throw new JspException( "the 'param' Tag must have a actionURL, renderURL " + "or resourceURL tag as a parent"); } urlTag.addParameter(getName(), getValue()); return SKIP_BODY; }
private boolean _jspx_meth_portlet_005fnamespace_005f2(javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // portlet:namespace org.apache.pluto.tags.NamespaceTag _jspx_th_portlet_005fnamespace_005f2 = (org.apache.pluto.tags.NamespaceTag) _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.get(org.apache.pluto.tags.NamespaceTag.class); _jspx_th_portlet_005fnamespace_005f2.setPageContext(_jspx_page_context); _jspx_th_portlet_005fnamespace_005f2.setParent(null); int _jspx_eval_portlet_005fnamespace_005f2 = _jspx_th_portlet_005fnamespace_005f2.doStartTag(); if (_jspx_th_portlet_005fnamespace_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f2); return true; } _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f2); return false; }
/** * Processes the <CODE>param</CODE> tag. * @return <CODE>SKIP_BODY</CODE> */ public int doStartTag() throws JspException { BaseURLTag urlTag = (BaseURLTag) findAncestorWithClass(this, BaseURLTag.class); if (urlTag == null) { throw new JspException( "the 'property' Tag must have a actionURL, renderURL " + "or resourceURL tag as a parent"); } urlTag.addProperty(getName(), getValue()); return SKIP_BODY; }
@Override public int doStartTag() throws JspException { PortletResponse portletResponse = (PortletResponse) pageContext.getRequest().getAttribute( Constants.PORTLET_RESPONSE); if (portletResponse != null) { PortletURL portletURL = createPortletUrl(portletResponse); setUrl(portletURL); handlePMandWS(); } return super.doStartTag(); }
@Override public int doStartTag() throws JspException { handleDefaultEscapeXML(); if (copyCurrentRenderParameters != null && !copyCurrentRenderParameters.equalsIgnoreCase("true") && !copyCurrentRenderParameters.equalsIgnoreCase("false")) { StringBuilder txt = new StringBuilder(128); txt.append("Invalid cacheability option: ").append(copyCurrentRenderParameters); txt.append(", valid options: true, false"); throw new JspException(txt.toString()); } return super.doStartTag(); }
/** * Replaces in String str the characters &,>,<,",' * with their corresponding character entity codes. * @param str - the String where to replace * @return String */ protected String doEscapeXml(String str) { if(!isEmpty(str)){ str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); str = str.replaceAll("\"", """); str = str.replaceAll("'", "'"); } return str; }
public ResourceURLTag286() { super(); setEscapeXml(Boolean.TRUE.toString()); }
public PortletURLTag286() { super(); setEscapeXml(Boolean.TRUE.toString()); }
private boolean _jspx_meth_portlet_005fnamespace_005f14(javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // portlet:namespace org.apache.pluto.tags.NamespaceTag _jspx_th_portlet_005fnamespace_005f14 = (org.apache.pluto.tags.NamespaceTag) _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.get(org.apache.pluto.tags.NamespaceTag.class); _jspx_th_portlet_005fnamespace_005f14.setPageContext(_jspx_page_context); _jspx_th_portlet_005fnamespace_005f14.setParent(null); int _jspx_eval_portlet_005fnamespace_005f14 = _jspx_th_portlet_005fnamespace_005f14.doStartTag(); if (_jspx_th_portlet_005fnamespace_005f14.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f14); return true; } _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f14); return false; }
@Override public int doStartTag() throws JspException { BaseURLTag urlTag = (BaseURLTag) findAncestorWithClass(this, BaseURLTag.class); urlTag.addParameter(getName(), getValue()); } else { ((ActionURLTag362)urlTag).addRenderParameter(getName(), getValue()); urlTag.addParameter(getName(), getValue());
/** * Processes the <CODE>param</CODE> tag. * @return <CODE>SKIP_BODY</CODE> */ public int doStartTag() throws JspException { BaseURLTag urlTag = (BaseURLTag) findAncestorWithClass(this, BaseURLTag.class); if (urlTag == null) { throw new JspException( "the 'property' Tag must have a actionURL, renderURL " + "or resourceURL tag as a parent"); } urlTag.addProperty(getName(), getValue()); return SKIP_BODY; }
@Override public int doEndTag() throws JspException { if(name != null){ addParameter("javax.portlet.action", name); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException{ if(Boolean.parseBoolean(copyCurrentRenderParameters)){ /*prepend current render parameters*/ doCopyCurrentRenderParameters(); } return super.doEndTag(); }
/** * Replaces in String str the characters &,>,<,",' * with their corresponding character entity codes. * @param str - the String where to replace * @return String */ protected String doEscapeXml(String str) { if(!isEmpty(str)){ str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); str = str.replaceAll("\"", """); str = str.replaceAll("'", "'"); } return str; }