Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

i need 5 2 7 .

Answered: 1 week ago