/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
/** * Release the tag's resources and reset the values. */ public void release() { super.release(); // reset the originals originalProperty = null; }
/** * 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 setProperty(originalProperty); // continue return i; }
/** * Overriding method of the heart of the matter. Gets the relative property * and leaves the rest up to the original tag implementation. Sweet. * @return int JSP continuation directive. * This is in the hands of the super class. */ public int doStartTag() throws JspException { // get the original properties originalProperty = getProperty(); // request HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); // set the properties NestedPropertyHelper.setNestedProperties(request, this); // let the super do it's thing return super.doStartTag(); }
setProperty(string); setValue(string);
public int doEndTag() throws JspException { encodeParameters(); int ret = super.doEndTag(); property = null; return ret; }
/** * Process the end of this tag. * <p> * Support for Indexed property since Struts 1.1 * * @exception JspException if a JSP exception has occurred */ public int doEndTag() throws JspException { // Generate an HTML element StringBuffer results = new StringBuffer(); results.append(getElementOpen()); prepareAttribute(results, "name", prepareName()); prepareButtonAttributes(results); results.append(prepareEventHandlers()); results.append(prepareStyles()); prepareOtherAttributes(results); results.append(getElementClose()); TagUtils.getInstance().write(pageContext, results.toString()); return (EVAL_PAGE); }
/** * Render the value element * @param results The StringBuffer that output will be appended to. */ protected void prepareValue(StringBuffer results) { // Acquire the label value we will be generating String label = value; if ((label == null) && (text != null)) label = text; if ((label == null) || (label.length() < 1)) label = getDefaultValue(); prepareAttribute(results, "value", label); }
/** * Overriding method of the heart of the matter. Gets the relative property * and leaves the rest up to the original tag implementation. Sweet. * @return int JSP continuation directive. * This is in the hands of the super class. */ public int doStartTag() throws JspException { // get the original properties originalProperty = getProperty(); // request HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); // set the properties NestedPropertyHelper.setNestedProperties(request, this); // let the super do it's thing return super.doStartTag(); }
setProperty(string); setValue(string);
/** * @see org.apache.struts.taglib.html.SubmitTag#doEndTag() */ @Override public int doEndTag() throws JspException { int returnVal = super.doEndTag(); if (!getDisabled() && !getReadonly()) { String name = prepareName(); if (StringUtils.isNotBlank(name)) { ActionForm form = WebUtils.getKualiForm(pageContext); if(form!=null && form instanceof PojoForm) { ((PojoForm) form).registerEditableProperty(name); } } } return returnVal; }
/** * Release any acquired resources. */ public void release() { super.release(); page = null; pageKey = null; property = ""; src = null; srcKey = null; }
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
/** * 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 setProperty(originalProperty); // continue return i; }
setProperty(string); setValue(string);
public void release() { super.release(); this.indexId = null; this.action = null; this.cancel = false; }
/** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
setProperty(string); setValue(string);
/** * Release any acquired resources. */ public void release() { super.release(); property = Constants.CANCEL_PROPERTY; }
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return(super.doStartTag()); }