Question: Write a servlet that enables the user to change the password from an HTML form, as shown in Figure 37.30a. Suppose the user information is
Write a servlet that enables the user to change the password from an HTML form, as shown in Figure 37.30a. Suppose the user information is stored in a database table named Account with three columns: username, password, and name, where name is the real name of the user. The servlet performs the following tasks:
a. Verify that the username and old password are in the table. If not, report the error and redisplay the HTML form.
b. Verify that the new password and the confirmed password are the same. If not, report this error and redisplay the HTML form.
c. If the user information is entered correctly, update the password and report the status of the update to the user, as shown in Figure 37.30b.

SO Chngo Paswond Usemane eren cooc be New Paed a Cetlim New Paismad Hello, Jotn F. Saith, your passnred has been updatett (a) (b)
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
coding utf8 Exploring and Visualizing the Number of OutofSchool Children Around the World Using Python Table of Contents Getting Started with Data Scientist Workbench CO2 emissions by Country by Year ... View full answer
Get step-by-step solutions from verified subject matter experts
