Ejemplo n.º 1
0
 /**
  * Calls <CODE>continueLoop()</CODE>. If that returns <CODE>true</CODE>, this method returns
  * <CODE>EVAL_BODY_AGAIN</CODE> so that the body of the tag is re-evaluated getting the chance to
  * process new events. Otherwise it returns <CODE>SKIP_BODY</CODE>.
  *
  * @return <CODE>EVAL_BODY_AGAIN</CODE> or <CODE>SKIP_BODY</CODE> depending on the value returned
  *     by <CODE>continueLoop()</CODE>
  * @throws JspException to signal an error
  */
 public int doAfterBody() throws JspException {
   if (event != null && !event.isConsumed()) logEvent("NC");
   loopCounter++;
   if (continueLoop()) return EVAL_BODY_AGAIN;
   else return SKIP_BODY;
 }
Ejemplo n.º 2
0
 /** Logs an event if the debug flag is <CODE>true</CODE>. */
 protected void logEvent() {
   if (getDebug()) {
     String status = event.isConsumed() ? "C" : "";
     logEvent(status);
   }
 }