标红和标紫的代码的意思。    public int doEndTag() throws JspTagException 
    {
        System.out.println("doEndTag");
        try 
        {  
             if(bodyContent != null)  
             {
             JspWriter out=bodyContent.getEnclosingWriter();
              bodyContent.writeOut(out);

                
                bodyContent.writeOut(bodyContent.getEnclosingWriter()); 
             }
        } 
        catch(java.io.IOException e)
        {
         throw new JspTagException("IO Error: " + e.getMessage());  
        }   
        return EVAL_PAGE;  
    }

解决方案 »

  1.   

        public int doEndTag() throws JspTagException 
        {
            System.out.println("doEndTag");
            try 
            {  
                 if(bodyContent != null)  
                 {
                    JspWriter out=bodyContent.getEnclosingWriter();
                     bodyContent.writeOut(out);

                    
                    bodyContent.writeOut(bodyContent.getEnclosingWriter()); 
                 }
            } 
            catch(java.io.IOException e)
            {
                throw new JspTagException("IO Error: " + e.getMessage());  
            }   
            return EVAL_PAGE;  
        }
      

  2.   

    对,是struts框架里的自定义标签里的内置方法! 红色语句和紫色语句表达的意思是一样的: 将当前内容按客户端浏览器默认字符集输出到页面吧!
      

  3.   

    好像是你设置的颜色值:
    [color=#FF0000]
    [color=#800080]