tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41180] New: - <jsp:include> I have fix this by edit org.apache.jasper.compiler.Parser.java
Date Fri, 15 Dec 2006 13:55:28 GMT
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: zhangzel@gmail.com


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 zhangzel@gmail.com 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message