Learn Java for Web Development

(Tina Meador) #1

68 CHAPTER 2: Building Web Applications Using Servlets and JSP


On the next screen, you can fill in the information pertaining to the deployment descriptor such as
the initialization parameters and URL mappings, as illustrated in Figure 2-19. For the HelloWorld
application, you do not have to fill in the values for initialization parameters. The default value of the
URL mapping, in this case /HelloWorld, is just fine. This value in the “URL mappings” field is the
servlet path of the URL, as explained in the previous section. Click Next.


Figure 2-19. URL mapping


On the next screen, specify the modifiers, interfaces to implement, and method stubs to generate, as
illustrated in Figure 2-20. Check doGet and doPost if they are not already checked. Then click Finish.

Free download pdf