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 22266] New: - Keep template text together with mappedfile="true"
Date Sat, 09 Aug 2003 01:27:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22266>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22266

Keep template text together with mappedfile="true"

           Summary: Keep template text together with mappedfile="true"
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ecarmich@alumni.rice.edu


Jasper's mappedfile=true option doesn't always generate static content with 
one print statement per input line.  Jasper creates a new Node every time it 
sees a "<" in the input, so when template text contains an HTML tag in the 
middle of an input line, the resulting Java code is split across multiple 
output lines (and in my opinion is therefore harder to read).

This can be fixed by checking the text after the "<" before moving on to the 
next Node.  I will attach a patch that implements this.

Mime
View raw message