origName = super.getName(); origProperty = super.getProperty(); origParamProperty = super.getParamProperty(); boolean hasName = (getName() != null && getName().trim().length() > 0); String currentName; if (hasName) { currentName = getName(); } else { currentName = NestedPropertyHelper.getCurrentName(request, this); super.setName(currentName); super.setProperty(NestedPropertyHelper.getAdjustedProperty(request, origProperty)); super.setName(null); super.setParamName(currentName); super.setParamProperty(NestedPropertyHelper.getAdjustedProperty(request, origParamProperty)); return super.doStartTag();
/** * Release the tag's resources and reset the values. */ public void release() { super.release(); // reset the originals origName = null; origProperty = null; origParamProperty = null; }
@Override protected String calculateURL() throws JspException { if (href != null) { int index = href.indexOf(':'); if (index > -1) { return super.calculateURL(); } return S2Functions.url(href); } return super.calculateURL(); } }
/** * Complete the processing of the tag. The nested tags here will restore * all the original value for the tag itself and the nesting context. * @return int to describe the next step for the JSP processor * @throws JspException for the bad things JSP's do */ public int doEndTag() throws JspException { // do the super's ending part int i = super.doEndTag(); // reset the properties setName(origName); setProperty(origProperty); setParamProperty(origParamProperty); // continue return i; }
setAction(string); setModule(string); setAnchor(string); setForward(string); setHref(string); setName(string); setPage(string); setParamId(string); setParamName(string); setParamProperty(string); setParamScope(string); setProperty(string); setScope(string); setTransaction(bool.booleanValue()); setUseLocalEncoding(bool.booleanValue());
/** * Render the beginning of the hyperlink. * <p> * Support for indexed property since Struts 1.1 * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { // Generate the opening anchor element StringBuffer results = new StringBuffer("<a"); // Special case for name anchors prepareAttribute(results, "name", getLinkName()); // * @since Struts 1.1 if (getLinkName() == null || getForward() != null || getHref() != null || getPage() != null || getAction() != null) { prepareAttribute(results, "href", calculateURL()); } prepareAttribute(results, "target", getTarget()); prepareAttribute(results, "accesskey", getAccesskey()); prepareAttribute(results, "tabindex", getTabindex()); results.append(prepareStyles()); results.append(prepareEventHandlers()); prepareOtherAttributes(results); results.append(">"); TagUtils.getInstance().write(pageContext, results.toString()); // Evaluate the body of this tag this.text = null; return (EVAL_BODY_TAG); }
/** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
setAction(string); setModule(string); setAnchor(string); setForward(string); setHref(string); setName(string); setPage(string); setParamId(string); setParamName(string); setParamProperty(string); setParamScope(string); setProperty(string); setScope(string); setTransaction(bool.booleanValue());
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
setAction(string); setModule(string); setAnchor(string); setForward(string); setHref(string); setIndexId(string); setLinkName(string); setName(string); setPage(string); setParamId(string); setParamName(string); setParamProperty(string); setParamScope(string); setProperty(string); setScope(string);
public void release() { super.release(); this.path = null; this.cancel = false; }
public int doStartTag() throws JspException { encodeParameters(); ActionMapping mapping = null; if (this.path == null) { String componentName = MethodBindingUtil.getComponentName(this.action); mapping = (ActionMapping) ModuleConfigUtil.findActionConfigForComponentName(module, componentName); } else { mapping = (ActionMapping) ModuleConfigUtil.findActionConfig(module, this.path); } if (mapping == null) { throw new JspException("Not found ActionMapping."); } this.action = mapping.getPath(); return super.doStartTag(); }
/** * Render the appropriately encoded URI. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { // Print this element to our output writer StringBuffer results = new StringBuffer("<frame"); prepareAttribute(results, "src", calculateURL()); prepareAttribute(results, "name", getFrameName()); if (noresize) { results.append(" noresize=\"noresize\""); } prepareAttribute(results, "scrolling", getScrolling()); prepareAttribute(results, "marginheight", getMarginheight()); prepareAttribute(results, "marginwidth", getMarginwidth()); prepareAttribute(results, "frameborder", getFrameborder()); prepareAttribute(results, "longdesc", getLongdesc()); results.append(prepareStyles()); prepareOtherAttributes(results); results.append(getElementClose()); TagUtils.getInstance().write(pageContext,results.toString()); return (SKIP_BODY); }
/** * Release any acquired resources. */ public void release() { super.release(); frameborder = null; frameName = null; longdesc = null; marginheight = null; marginwidth = null; noresize = false; scrolling = null; }
/** * Resets attribute values for tag reuse. */ public void release() { super.release(); setActionExpr(null); setModuleExpr(null); setAnchorExpr(null); setForwardExpr(null); setHrefExpr(null); setNameExpr(null); setPageExpr(null); setParamIdExpr(null); setParamNameExpr(null); setParamPropertyExpr(null); setParamScopeExpr(null); setPropertyExpr(null); setScopeExpr(null); setTransactionExpr(null); setUseLocalEncodingExpr(null); }
super.release(); setAccesskeyExpr(null); setActionExpr(null);
super.release(); setAccesskeyExpr(null); setActionExpr(null);