Search in sources :

Example 6 with JspFragment

use of javax.servlet.jsp.tagext.JspFragment in project jodd by oblac.

the class LoopingTagSupport method loopBody.

/**
	 * Loops body.
	 */
protected void loopBody() throws JspException {
    JspFragment body = getJspBody();
    if (body == null) {
        return;
    }
    LoopIterator loopIterator = new LoopIterator(start, end, step, modulus);
    if (status != null) {
        getJspContext().setAttribute(status, loopIterator);
    }
    while (loopIterator.next()) {
        TagUtil.invokeBody(body);
    }
    if (status != null) {
        getJspContext().removeAttribute(status);
    }
}
Also used : JspFragment(javax.servlet.jsp.tagext.JspFragment) LoopIterator(jodd.util.LoopIterator)

Aggregations

JspFragment (javax.servlet.jsp.tagext.JspFragment)6 JspContext (javax.servlet.jsp.JspContext)2 StringWriter (java.io.StringWriter)1 Writer (java.io.Writer)1 SimpleDateFormat (java.text.SimpleDateFormat)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 Date (java.util.Date)1 Iterator (java.util.Iterator)1 StringTokenizer (java.util.StringTokenizer)1 JspException (javax.servlet.jsp.JspException)1 JspWriter (javax.servlet.jsp.JspWriter)1 PageContext (javax.servlet.jsp.PageContext)1 LoopIterator (jodd.util.LoopIterator)1 StudyBean (org.akaza.openclinica.bean.managestudy.StudyBean)1 DisplaySectionBean (org.akaza.openclinica.bean.submit.DisplaySectionBean)1 EventCRFBean (org.akaza.openclinica.bean.submit.EventCRFBean)1 PrintHorizontalFormBuilder (org.akaza.openclinica.view.form.PrintHorizontalFormBuilder)1