Changeset 4063


Ignore:
Timestamp:
Dec 14, 2007, 2:30:28 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #881: Page taglib with type="include" generates </html> tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5-stable/src/clients/web/net/sf/basedb/clients/web/taglib/Page.java

    r3679 r4063  
    273273    throws JspException
    274274  {
    275     StringBuilder sb = new StringBuilder();
    276     sb.append("</html>\n");
    277     try
    278     {
    279       pageContext.getOut().print(sb.toString());
    280     }
    281     catch (Exception ex)
    282     {
    283       throw new JspTagException(ex.getMessage());
     275    if (type != PAGE_TYPE_INCLUDE)
     276    {
     277      StringBuilder sb = new StringBuilder();
     278      sb.append("</html>\n");
     279      try
     280      {
     281        pageContext.getOut().print(sb.toString());
     282      }
     283      catch (Exception ex)
     284      {
     285        throw new JspTagException(ex.getMessage());
     286      }
    284287    }
    285288    return EVAL_PAGE;
Note: See TracChangeset for help on using the changeset viewer.