Debugging JSP Pages

Since JSP pages are created by a JSP-compliant Web server, they can not be compiled and tested outside of that environment. One way to proceed is to generate a Web Component that includes your JSP pages, and update and redeploy that component every time you change the page.

Another way to debug, if you are using the Java Web Server packaged with J2EE, is to place your files in the public-html directory of the J2EE_HOME directory. You can modify your pages and then test them in the browser by using the refresh button. For example, suppose that your page were hello.jsp. Open a text editor with the source file, and the browser with the URL http://localhost:8000/hello.jsp. After you make a change, save the file from the editor and press the refresh button to examine the output.


Maintained by John Loomis, last updated 31 March 2001