| JSP Breakpoints | |||||||
Status of this Document
|
|||||||
| Prerequisites | |||||||
|
must have an Apache Tomcat server installed |
|||||||
| Create a server | |||||||
|
- Window > Preferences > Server > Installed Runtimes
|
|||||||
| Create a J2EE module | |||||||
|
- File > New > Project
|
|||||||
| Create a JSP | |||||||
|
- in the WebContent folder of your project
<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>
|
|||||||
| Add some breakpoints | |||||||
|
in scriplet sections of breakpoint-test.jsp:
|
|||||||
| Add the server | |||||||
|
open the servers view:
|
|||||||
| Debug on server | |||||||
|
right click on the breakpoint-test.jsp file in the package
explorer
|
|||||||
| Source Editing Test Plans | |||||||
|
org.eclipse.wst.sse
|
|||||||