-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

TWönlìnè,

On 3/25/2010 2:30 AM, TWönlìnè wrote:
> If you look at JSP line from 3 to 13 you'll find this,
> 
> 3. %>
> 4. <%@ page import="java.util.*" %>
> 5. <%@ page import="java.text.*" %>
> 6. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
> http://www.w3.org/TR/html4/loose.dtd";>
> 7. <html>
> 8. <head>
> 9. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> 10. <title>Insert title here</title>
> 11. </head>
> 12. <body>
> 13. <%
> 
> on JAVA file,
> 
> 55. out.write("\r\n\r\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01
> Transitional//EN\"
> \"http://www.w3.org/TR/html4/loose.dtd\";>\n<html>\n<head>\n<meta
> http-equiv=\"Content-Type\" content=\"text/html;
> charset=ISO-8859-1\">\n<title>Insert title
> here</title>\n</head>\n<body>\n");

Looks good to me: line 3 contains \r\n, as do lines 4 and 5, then lines
6-12 are obvious, and line 13 is blank, so it really doesn't matter.

> As you can see on the JAVA line the imports are not present which exist in
> JSP lines 4 and 5

Right: imports translate into "import" statements in the .java file, but
you still have newlines after each <@page> directive, so they are
included in the output.

> so the correct mapping should be
> 
> 6,6:55,0
> and
> 3,2:6,1

I disagree.

> That's the issue,
> Is this a bug in TOMCAT SMAP feature ?????

No, I believe it's working as expected: you just need to be more
sensitive to what output your JSP is actually generating.

> btw is there a easier way to capture code line numbers other than using a
> .BAT file or creating a program for it????

I have no idea what you're talking about.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuroFEACgkQ9CaO5/Lv0PDSNwCglgKvOOC+xthLKDC+Wd/AKVlM
gL4AoKZPrVWl6L+NFqQT5APD6guy9yD9
=0+lE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to