Creating a JSP File

See Also

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.

tip 

If you put a JSP file in the WEB-INF directory or any of its subdirectories, users cannot access the JSP file directly through a URL. Instead the JSP must be accessed through another JSP or through a servlet. You might want to put a JSP file under the WEB-INF directory to prevent users from using the JSP file as an entry point to the application.

To create a JSP file:

  1. From the Filesystems window, right-click the web module's document base (root directory) or an appropriate subdirectory within the web module and choose New and choose All Templates from the contextual menu.
  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
Where to Put Web Module Files
Editing a JSP File
Validating JSP Syntax
Viewing a JSP's Servlet
About Running Web Modules
About Debugging Web Modules
JSP File Node
JSP Property Sheet

Legal Notices