Testing JSP files on a server
You can test your JSP pages on an existing server or you can create a new server automatically for testing.
- In the Project Explorer view, find the JSP page you want to test. It should be in the Web content folder under your Web project.
- Right-click the JSP page name to open the pop-up menu.
- Select Run on Server. The Server selection wizard opens.
- You can use an existing server or create a new server:
- If the test server is already configured for this project, ensure that it is selected under Use an existing server.
- If no test server is configured for the project, select Create a new server. Select the server type, for example WebSphere version 5.1 test environment.
- Click Finish. This launches your test server to run the JSP page. The server tools automatically do the following tasks for you:
- Creates a server project with Servers as the default name.
- Creates the server.
- Adds the EAR project containing your Web project to the server.
- Starts the server. (This might take time to start depending on the server settings.)
- Displays the file in the Web browser.
Other options for testing are Debug on Server and Profile on Server.
Related concepts
JavaServer Pages (JSP files)
Related tasks
Creating JSP files
breakpoints, suspend threads, step through the code, and examine the contents of the variables.">Debugging JSP files
Editing JSP files
Adding an embedded file to a JSP page