tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TWönlìnè <twonlinevi...@gmail.com>
Subject Re: Help required for SMAP....
Date Thu, 25 Mar 2010 06:30:13 GMT
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????

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message