Question: using java Part A: 1. Create a User JavaBean. The User bean should have all the attributes collected from the new customer form. Also give

using java

Part A:

1. Create a User JavaBean. The User bean should have all the attributes collected from the new customer form. Also give it a username and password property.

2. In the NewCustomerServlet, create an instance of the User bean from the new customer form data. The username should consist of their last name combined with their zipcode. Give them a temporary password of welcome1.

3. Add the new create user object to the session scope.

4. Using EL, bind the customer object to the success page and display all the attributes along with the new username and password.

Part B:

1. Add a Reset Password link to the Login Page.

Create a password_reset.jsp

2. Using EL, bind the User object password to a form field in a page.

Allow the user to change their password.

3. On the servlet side, retrieve the user from the session and change the password to the password entered on the reset form.

Save the User object in session scope.

Redirect the user to the account_activity page.

Part C:

1. On the account_activity page use a JSTL if statement. If the User object is in the session and not null, display a welcome message containing their firstname and lastname in the page. If it does not exist, display a Not Logged In message on the page.

part D:

1. Implement a header.html and footer.jsp file for the header and footer of your TOBA application. Using a JSP tag, the footer should dynamically display the current date in the copyright information. Include the header and footer in all pages of your application.

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!