Debugging JSP files
You can detect and diagnose errors in your JSP files by debugging. You can set breakpoints, suspend threads, step through the code, and examine the contents of the variables.
Procedure
Results
Tip:
- If you do not plan to set and stop at breakpoints when running JSP files in the WebSphere® Test Environment, you can improve JSP performance by changing the Run on Server action, so that it starts the server in non-debug mode. (The default is debug mode.) You can change the Run on Server action behavior by selecting . Clear the Run on Server action starts the server in debug mode check box.
- When using WebSphere Application Server, you can save
the generated .java files compiled from JSP files, by adding the following
statements to the ibm-web-ext.xmi file in your Web application:
The generated files are stored in the location specified by the "scratchdir" property.<jspAttributes xmi:id="JSPAttribute_1" name="keepgenerated" value="true"/> <jspAttributes xmi:id="JSPAttribute_2" name="scratchdir" value="C:\temp"/>