protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }
protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // If this is a deferred expression, make a note and get // the 'items' instance. if (rawItems instanceof ValueExpression) { deferredExpression = (ValueExpression) rawItems; rawItems = deferredExpression.getValue( pageContext.getELContext()); } // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }
protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // If this is a deferred expression, make a note and get // the 'items' instance. if (rawItems instanceof ValueExpression) { deferredExpression = (ValueExpression) rawItems; rawItems = deferredExpression.getValue( pageContext.getELContext()); if (rawItems == null) { // Simulate an empty list rawItems = new ArrayList(); } } // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }
protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // If this is a deferred expression, make a note and get // the 'items' instance. if (rawItems instanceof ValueExpression) { deferredExpression = (ValueExpression) rawItems; rawItems = deferredExpression.getValue( pageContext.getELContext()); if (rawItems == null) { // Simulate an empty list rawItems = new ArrayList(); } } // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }
protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // If this is a deferred expression, make a note and get // the 'items' instance. if (rawItems instanceof ValueExpression) { deferredExpression = (ValueExpression) rawItems; rawItems = deferredExpression.getValue( pageContext.getELContext()); if (rawItems == null) { // Simulate an empty list rawItems = new ArrayList(); } } // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }
protected void prepare() throws JspTagException { // produce the right sort of ForEachIterator if (rawItems != null) { // If this is a deferred expression, make a note and get // the 'items' instance. if (rawItems instanceof ValueExpression) { deferredExpression = (ValueExpression) rawItems; rawItems = deferredExpression.getValue( pageContext.getELContext()); if (rawItems == null) { // Simulate an empty list rawItems = new ArrayList(); } } // extract an iterator over the 'items' we've got items = supportedTypeForEachIterator(rawItems); } else { // no 'items', so use 'begin' and 'end' items = beginEndForEachIterator(); } /* ResultSet no more supported in <c:forEach> // step must be 1 when ResultSet is passed in if (rawItems instanceof ResultSet && step != 1) throw new JspTagException( Resources.getMessage("FOREACH_STEP_NO_RESULTSET")); */ }