Question: Part I Modify your LoginServlet. Using the Customer Business Object that we built in Lab #5, change the Login Servlet to get the pw from

Part I Modify your LoginServlet. Using the Customer Business Object that we built in Lab #5, change the Login Servlet to get the pw from the Database and check that against the password the User enters in the HTML Gui. Part II Modify your LoginServlet. Use the requestDispatcher to forward control onto an Error Page (ErrorPage.jsp), if the user login is not correct. Part III Modify your LoginServlet again. Again use the requestDispatcher to forward control onto an AccountLookup page (AccountLookup.jsp), if the user login is correct. We created the AccountLookup.jsp back in Lab #1. Part IV Next, in your LoginServlet, put the Customer object in the Session. This Customer object will be used by a later Servlet to display customer info. Part V Now build the AccountLookupServlet. This servlet should read the input from the previous HTML file and Find the Accounts information from the database, using the Account business class, then display the information back to the Server Log. The AccountLookupServlet should be scheduled when the user clicks on the Retrieve button from the AccountLookup.jsp file that was displayed by the LoginServlet. Note: The AccounLookupServlet will not generate any HTML code. That will be done in the next Lab. Part VI Lastly, in your AccountLookupServlet, put the Account object in the Session. This Account object will be used by a later Servlet to display Account info. Turn in: Your modified LoginServlet.java file and your new AccountLookupServlet.java file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!