Creating a JSP File

JSP files are created and managed in the IDE in much the same way as other file types. Note that the web module must be mounted at the document base (the root directory) in the Filesystems window before you can execute the following steps.

To create a JSP or servlet source file:

  1. From the Filesystems window, right-click the document base or an appropriate subdirectory within the web module and choose New and choose All Templates from the contextual menu.
    Tip

    Do not put JSP files in the WEB-INF directory or any of its subdirectories.

  2. In the New Wizard, expand JSP & Servlet, expand JSPs, select the JSP type you want to create, and click Next.
  3. In the General JSP Information page, type the name of your JSP. Do not include a filename extension as this is added automatically when the file is created.
  4. Click Finish. The IDE opens the JSP file for editing in the Source Editor.

For information on other file management tasks, such as mounting and unmounting filesystems, creating and customizing templates, and searching for files, see "Managing Objects in the IDE" in the Core IDE Help Set.

See also
File Location in a Web Module
Editing a JSP File
Executing a JSP File

Legal Notices