DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41180

           Summary: <jsp:include> I have fix this by edit
                    org.apache.jasper.compiler.Parser.java
           Product: Tomcat 5
           Version: 5.5.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


hi:
    I have resolve this bug by edit org.apache.jasper.compiler.Parser, in 
function parseOptionalBody,after 'reader.matches(">")' , may have a blank 
character before </jsp:include>, so must skip those blank charactor.
    I saw this bug has appearance in Tomcat5.0.* , but I find this bug in 
tomcat5.5.9 ,5.5.12. The next is Parser.java source that I have edit and test 
it in Application Server automatic test collections:

private void parseOptionalBody( Node parent, String tag, String bodyType ) 
        throws JasperException 
{
    if (reader.matches("/>")) {
        // EmptyBody
        return;
    }

    if (!reader.matches(">")) {
        err.jspError(reader.mark(), "jsp.error.unterminated",
                 "&lt;" + tag );
    }

    //edit by [EMAIL PROTECTED] 20061215: beacause next may be a blank 
character.
    reader.skipSpaces();

    if( reader.matchesETag( tag ) ) {
        // EmptyBody
        return;
    }
        
    if( !parseJspAttributeAndBody( parent, tag, bodyType ) ) {
        // Must be ( '>' # Body ETag )
        parseBody(parent, tag, bodyType );
    }
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to