两个错误
1. 
public int doStartTag() throws JspTagException {
if (count > 0) {
System.out.println("eval_body_include");
// ### 下面这句
         // return EVAL_BODY_INCLUDE;
                        //  应改成下面这样.
return EVAL_BODY_BUFFERED;
} else {
return SKIP_BODY;
}-------------------------------2. 也是这个错误 public int doAfterBody() throws JspTagException {
if (count-- >= 1) {
System.out.println("XXXXXXX " + count);
// try {
 BodyContent bc = getBodyContent();
 System.out.println("BodyContent--: " + bodyContent);
// JspWriter out = bodyContent.getEnclosingWriter();
// 为什么bc对象和bodyContent总是为空,请指教
// System.out.println(value + "," + this.bodyContent);
// String str = bc.getString();
// System.out.print(str);
// System.out.println( " <br> ");
// bc.clearBody();
// } catch (IOException e) {
// System.out.println( "Error in RepeatTag: " + e);
// }
 // #### 1 #### 这儿 也把返回值写错了
       //return EVAL_BODY_INCLUDE;
                        // 应写成下面这样
 return EVAL_BODY_AGAIN;
} else {
return SKIP_BODY;
}
}-------------------------这样就可以了