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=20821>.
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=20821

Wrong SMAP information generate

           Summary: Wrong SMAP information generate
           Product: Tomcat 5
           Version: 5.0.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Jasper generate for he following jsp code :

      1 <html>
      2   <body>
      3     <% String name= request.getParameter("name"); %>
      4     Hello <%= name %>.
      5     <% if (name.equalsIgnoreCase("luc")) { %>
      6       How are you ?
      7     <% } else { %>
      8       Who are you ?
      9     <% } %>
     10   </body>
     11 </html>

the following java code :

     40       out.write("<html>\n\t");
     41       out.write("<body>\n\t\t");
     42  String name= request.getParameter("name");
     43       out.write("\n\t\tHello ");
     44       out.write(String.valueOf( name ));
     45       out.write(".\n\t\t");
     46  if (name.equalsIgnoreCase("luc")) {
     47       out.write("\n\t\t\tHow are you ?\n\t\t");
     48  } else {
     49       out.write("\n\t\t\tWho are you ?\n\t\t");
     50  }
     51       out.write("\n\t");
     52       out.write("</body>\n");
     53       out.write("</html>");

It also generate the following SMAP information:

SMAP
testIf_jsp.java
JSP
*S JSP
*F
+ 0 testIf.jsp
/jsp/testIf.jsp
*L
1:40
2:41
3:42
3:43
4:44
4:45
5:46
5:47
7:48
7:49
9:50
10:52
11:53
*E

which is wrong, it should be :

SMAP
testIf_jsp.java
JSP
*S JSP
*F
+ 0 testIf.jsp
/jsp/testIf.jsp
*L
1:40
2:41
3:42
4:43     <-- change here
4:44
4:45
5:46
6:47     <-- change here
7:48
8:49     <-- change here
9:51     <-- change here
10:52
11:53
*E

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

Reply via email to