Most types of JSP files can be created using the New JSP File
wizard. To create a basic JSP file using the wizard, complete the following
steps:
Create a dynamic Web project if you have not already done so.
In the Project Explorer, expand your project and right click on
your WebContent folder or on a subfolder under WebContent. Note that if you
choose any other folder in which to create the JSP, then it will not be included
in the WAR file that is deployed to the server. In addition, link validation
will not encompass files that are not under the WebContent folder.
From the context menu, select New
> JSP. The New Java Server
Page window appears with your folder selected
Type a file name into the File name field, making sure you include
the jsp extension (jsp, jsv, jtpl, or jspx) in the file name.
You have several options for proceeding:
To accept the defaults associated with a new JSP file, select Finish.
To link to a file in the file system and specify path variables, select Advanced and
then make your selections using the Browse and Variables buttons.
To use a template file for the initial content of your JSP page,
select Next. The Select JSP Template window appears.
Select the Use JSP Template check box, and then select
one of the sample templates. You can also select the JSP Templates link
to add or remove JSP templates to your list of templates.