Thanks for the reply, I guessed that also, but i think there are some problems in this approach.
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"); As you can see on the JAVA line the imports are not present which exist in JSP lines 4 and 5 You can find those imports in, JAVA file on the following lines. 6. import java.util.*; 7. import java.text.*; so the correct mapping should be 6,6:55,0 and 3,2:6,1 That's the issue, Is this a bug in TOMCAT SMAP feature ????? I'm so confused.... btw is there a easier way to capture code line numbers other than using a .BAT file or creating a program for it????