| <html> |
| <head> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> |
| <link type="text/css" href="../../../../..//default_style.css" rel="stylesheet"> |
| <link type="text/css" href="../../../../..//webtools/wtp.css" rel="stylesheet"> |
| <title>JSP Breakpoint Test</title> |
| </head> |
| <body> |
| <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| <col width="16"> |
| <col width="*"> |
| <tbody> |
| <tr> |
| <td colspan="2" align="left" bgcolor="#0080c0" valign="top"><b><font color="#ffffff" face="Arial,Helvetica">JSP Breakpoints</font></b></td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Status of this Document</b> |
| |
| <table border="1"> |
| |
| <tr> |
| |
| <th>Date</th> |
| <th>Comments</th> |
| |
| </tr> |
| |
| <tr> |
| |
| <td>6.21.06</td> |
| <td>Test moved to new location</td> |
| |
| </tr> |
| |
| <tr> |
| |
| <td>04.15.05</td> |
| <td>Test created</td> |
| |
| </tr> |
| |
| </table> |
| |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Prerequisites</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p>must have an Apache Tomcat server installed</p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Create a server</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| - Window > Preferences > Server > Installed Runtimes |
| <br> |
| - Add... |
| <br> |
| - choose the appropriate version of Apache Tomcat |
| <br> |
| - Point to your appropriate Tomcat directory |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Create a J2EE module</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| - File > New > Project |
| <br> |
| - Web > J2EE Web Module |
| <br> |
| - use the Tomcat server you just added as the Target server |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Create a JSP</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| - in the WebContent folder of your project |
| <br> |
| - create breakpoint-test.jsp file with these contents |
| <br> |
| |
| |
| <pre> |
| |
| <html> |
| |
| <head> <title>breakpoint test</title> |
| </head> |
| |
| <body> |
| |
| <% String test = "test"; for (int i = 0; i < 5; |
| i++) { out.println(test); } %> |
| |
| <p>a paragraph</p> |
| |
| <% out.println("another"); // some comments |
| out.println("block"); out.println("of"); |
| out.println("code"); // comment at the end %> |
| </body> |
| |
| </html> |
| |
| </pre> |
| |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Add some breakpoints</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| in scriplet sections of breakpoint-test.jsp: |
| <br> |
| - double click in the left hand ruler in some of the |
| scriplet sections to add breakpoints. |
| <br> |
| - or right click in the ruler and select "toggle |
| breakpoints" |
| |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Add the server</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| open the servers view: |
| <br> |
| - Window > Show View > Other... |
| <br> |
| - Server > Servers |
| <br> |
| - right click (in the servers view) > New > server |
| <br> |
| - select the appropriate variety of Tomcat server |
| <br> |
| - add your J2EE module to this server |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"><img src="../../../../..//images/Adarrow.gif" border="0" height="16" width="16"></td><td> |
| <b>Debug on server</b> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| right click on the breakpoint-test.jsp file in the package |
| explorer |
| <br> |
| - select "Debug on Server" |
| <br> |
| - the server should start, and you should be switched to the |
| debug perspective |
| <br> |
| - you should be able to step through the breakpoints |
| |
| <br> |
| - you should be able to reload the page to start debugging |
| <br> |
| - try adding/removing breakpoints, reloading the page |
| <br> |
| - you should be able to see/enable/disable the breakpoints |
| in the brekpoints view |
| <br> |
| |
| <br> |
| |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" align="left" bgcolor="#0080c0" valign="top"><b><font color="#ffffff" face="Arial,Helvetica">Source Editing Test Plans</font></b></td> |
| </tr> |
| <tr> |
| <td align="right" valign="top"> </td><td valign="top"> |
| <p> |
| |
| <a href="../../../../wst/components.html#sse"> |
| org.eclipse.wst.sse |
| </a> |
| |
| <br> |
| |
| <a href="../../../../wst/components.html#xml"> |
| org.eclipse.wst.xml |
| </a> |
| |
| <br> |
| |
| <a href="../../../../wst/components.html#html"> |
| org.eclipse.wst.html |
| </a> |
| |
| <br> |
| |
| <a href="../../../../wst/components.html#css"> |
| org.eclipse.wst.css |
| </a> |
| |
| <br> |
| |
| <a href="../../../../wst/components.html#dtd"> |
| org.eclipse.wst.dtd |
| </a> |
| |
| <br> |
| |
| <a href="../../../../wst/components.html#javascript"> |
| org.eclipse.wst.javascript |
| </a> |
| |
| |
| <br> |
| |
| <a href="../../../../jst/components.html#jsp"> |
| org.eclipse.jst.jsp |
| </a> |
| |
| </p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </body> |
| </html> |