Java Reference
In-Depth Information
Choose a name for your application and check the
Use default location
box if you
want to create your project within the same location of your Eclipse workspace. If
you have correctly configured a new JBoss AS 7.1 server in Eclipse, you should see
the
JBoss 7.1 Runtime
option selected by default and
Target Runtime
and
De-
fault Configuration for JBoss 7.1 Runtime
preselected in the
Configuration
com-
bobox.
Select
3.0
as
Dynamic web module version
, which buys us ease of development
by using the Servlet 3.0 specifications, and also leave the
EAR membership
check-
box unselected.
Click on
Finish
to continue.
Now let's add a quintessential servlet to our project that merely dumps a HelloWorld
message. From the
File
menu, select
New
|
Servlet
and enter a meaningful name
and package for your servlet, such as
TestServlet
as the name and
com.packtpub.as7development.chapter2
as the package name.