This week we will connect our servlet to a database using techniques we learned in week 2. Next, we will create a virtual directory which will eliminate the need to include the word "servlet' in the application URL. Lastly we will learn how to create and deploy an application using a Web Archive (WAR) file. As we will see, using a WAR file is a more elegant way to deploy an application.;For all assignments connecting to a DBMS you will need to use the following account ID and password;?Account ID: student1;?Password: pass;Create a new Web application titled Week5. In this application you will also create a virtual directory so that you do not have to use the word servlet as part of your form post URL. You will then be able to run your Web application servlet by using a URL similar to the following: http://localhost:7070/Week5/FormPost2. To create your virtual directory you may start by modifying the web.xml attached to this assignment. Next, create a Servlet that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same servlet, which in the doPost method will save the form data to a database. Use your Oracle account to make the DB connection. After the form data has been saved to the database, respond back with a query from the database displaying all the current records contained in the database, in an appealing format. The form must contain a minimum of three input fields. The grade for this assignment will be based both on the functionality of the servlet and the appearance of the form post results. Name your servlet FormPost2 and name the application Week5. Create a Web archive file and attach to this assignment. Do not copy (cut and paste) any example code, create your own code and use the examples as a guide.
Paper#64198 | Written in 18-Jul-2015Price : $32