Can anyone please explain to me under which circumstances tomcat does or does not show jsp line numbers when an error or exception occurs. Is it to do with the problem occurring at translation time or compilation time or runtime? How can I make sure tomcat always show jsp line numbers and not servlet line numbers?
Since there are two separate processes involved in "executing" a JSP you are naturally going to have two error sources. The stage of translating JSP to servlet code only knows JSP line numbers. The stage of compiling servlet code only knows servlet line numbers. Bill