JavaServer Pages
We will start with a project to create a simple JSP. We will create a login JSP that submits data to itself and validates the user.
Creating a dynamic web project
We will perform the following steps to create a dynamic web project:
- Select the
File
|New
|Other
menu. This opens the selection wizard. At the top of the wizard, you will find a textbox with a cross icon on the extreme right side. - Type
web
in the textbox. This is the filter box. Many wizards and views in Eclipse have such a filter textbox, which makes finding items very easy.

Figure 2.7: New selection wizard
- Select
Dynamic Web Project
and clickNext
to open theDynamic Web Project
wizard. Enter project name, for example,LoginSampleWebApp
. Note that theDynamic web module version
field in this page lists Servlet API version numbers. Select version 3.0 or greater. ClickNext
.

Figure 2.8: New Dynamic Web Project wizard
- Click
Next
in the following pages and clickFinish
on the last page to create aLoginSimpleWebApp
project...