A new project gets added to the Eclipse IDE, as shown in Figure 5.
Figure 5. Eclipse JBoss project
Next, select File -> Import to import the example servlet source folder to the project. The project's src folder and build.xml file need to be imported if the src folder and build.xml file were not created in the Eclipse IDE. In the Import Select frame, select File System and click the Next button. In the Import File System frame, select the src folder and the build.xml file, and click the Finish button, as shown in Figure 6.
Figure 6. Importing file system
This adds the servlet source files to the project, as shown in Figure 7.
Figure 7. Servlet source files