Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
JSP SCRIPTING ELEMENTS 159 Depending on how your server is set up, you can even look at the source code for servlets generated from your JSP pages. With Tomcat 3.o, you need to change the isWorkDirPersistent attribute from false to true in install_dir/server.xml. After that, the code can be found in install_dir/work/port-number. With the JSWDK 1.0.1, you need to change the workDir- IsPersistent attribute from false to true in install_dir/webserver.xml. After that, the code can be found in install_dir/work/%3Aport-number%2F. With the Java Web Server, 2.0 the default setting is to save source code for automatically generated servlets. They can be found in install_dir/tmpdir/default/pagecompile/ jsp/_JSP. One warning about the automatic translation process is in order. If you make an error in the dynamic portion of your JSP page, the system may not be able to properly translate it into a servlet. If your page has such a fatal translation-time error, the server will present an HTML error page describing the problem to the client. Internet Explorer 5, however, typically replaces server-generated error messages with a canned page that it considers friendlier. You will need to turn off this "feature" when debugging JSP pages. To do so with Internet Explorer 5, go to the Tools menu, select Internet Options, choose the Advanced tab, and make sure "Show friendly HTTP error messages" box is not checked. Core Warning When debugging JSP pages, be sure to turn off Internet Explorer's "friendly" HTTP error messages.