Creating a JSP Source File
JSP source files are created and managed in the IDE in much
the same way as other file types. Instructions for creating JSP source files
are provided below.
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.
To create a JSP source file:
- From the IDE main menubar, select File
New
to open the Template Chooser dialog.
- In the New from Template dialog, open the JSP template category and
select either JSP (HTML) or JSP (Plain Text).
- Choose the name and folder (package) of your JSP file. Do not
include a filename extension, this will be added automatically when
the file is created.
- Click Finish. The JSP file will be created and opened for editing
in the IDE Source Editor.
 |
The two JSP templates differ
in the MIME type that is set in the generated page sent to the browser.
- In the JSP HTML template, the page directive sets
the MIME type to "text/html" which tells the browser
to interpret and render any HTML markup it sees.
- In the Plain Text version, the MIME type
is set to "text/plain" which tells the browser to display
the contents of the generated web page verbatim.
|
Legal Notices