Also see:

Installing Eclipse 1.0.1
Configuring Eclipse 1.0.1
Frequently Used Questions

Using Eclipse 1.0.1


This document describes how to create a project and debug JSPs.

Creating a Project

1. On the J2EE - Eclipse SDK main window, select File -> New -> Project -> Web -> Dynamic Web Project.

2. On the new screen, enter a Project Name (say HelloWorld) and select Pramati 5.0 as a Target Runtime using the drop-down list. You can also create a new configuration by clicking New. The new configuration is defined in the same way as described in the configuration guide. Click Next.

3. On the next screen, select project facets that let you select the Web Module and Java Runtime versions. Click Next.

4. The next screen helps you in configuring Web Module settings. You can set the Context Root, and the Content and Java Source directories for the project. Click Finish. Eclipse now opens the J2EE Perspective.

5. To create a jsp (say index.jsp) in HelloWorld Project, right click on the HelloWorld Project. Select New -> JSP.

6. This opens the New JavaServer Page. Enter a File Name, say index.jsp. Click Next.

7. Select the default JSP template. Click Finish.

8. In the Project Explorer tab, right click on the HelloWorld Project. Select Run As -> Run on Server..

9. In the Run On Server dialog, select existing server. Click Finish.

10. The server starts and the Console tab displays the server shell details. The application is deployed and the index.jsp can be seen in the eclipse browser.

 


 

Debugging JSPs

To debug a jsp file, for example the index.jsp created above, use the following steps:

1. Add a break point to index.jsp.

2. On the Project, right click on HelloWorld Project and select Debug As -> Debug On Server.

3. Select the existing Pramati Server.

4. The Server starts in debug mode, and Eclipse switches to debug perspective. The application is deployed.

5. The debugger hits the break point.

6. You can now step through the jsp code.


© Copyright 2006, Pramati Technologies.