南京理工大学泰州科技学院
毕业设计(论文)外文资料翻译
系部:计算机科学与技术系
专业:计算机科学与技术
姓名:
学号:
外文出处: Java Developer’s Guide
(用外文写)
to Servlets and JSP
附件: 1.外文资料翻译译文;2.外文原文。
附件1:外文资料翻译译文
附件2:外文原文
JSP Debugging Problems
In the Tomcat implementation, JSP pages are handled by a servlet that has its own log file,called “jasper.log” by default. However, because the JSP servlet is run by the normal servlet engine, errors during compilation presently end up in the main “tomcat.log” file. If you are using another servlet and JSP engine, it will probably have different logfile conventions.
Therefore, the most important advice I can give on JSP debugging is that you should become very familiar with all the logging capabilities of your chosen platform.
JSP Syntax Errors
A JSP page has to go through both translation to a Java servlet and compilation of the servlet before you even get to make runtime errors. You are probably going to be chasing a lot of simple syntax problems. An example that seems to occur a lot has to do with escaping quotation marks in JSP expression statements. The JSP code in Listing 5.13, an example from Chapter 3, gets translated into a single Java out.write statement that writes part of a