Running a JSP File

See Also

When you run a JSP file, the IDE displays the file in the IDE's default web browser. If the JSP file that you run from the IDE has not been compiled, or if it has changed since it was last compiled, the IDE automatically compiles it before executing it. If the server or the IDE's default web browser have not been started, the IDE automatically starts it.

To run a JSP file:

  1. (Optional) Define request parameters to pass to the JSP file.
  2. Select the JSP file in the Source Editor or Projects window.
  3. Choose Run > Run File > Run "filename.jsp" (Shift-F6) from the main menu. If there are no errors, the server displays the file in the IDE's default web browser.
tip

If you are using a , this command is disabled by default. You have to write an Ant target for running the currently selected file in the IDE and hook it up to the Run Class command. For a full guide to configuring free-form projects, see:

Troubleshooting

If you get "File not found" errors when you execute a JSP file, see Accessing Local Files Through a Proxy for possible solutions.

See Also
About Deploying Web Applications
Deploying a Web Application
Running a Servlet

Legal Notices