Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 4: Creating view component - JSP Task 1: Create a JSP for login page. a) Right click on the WebPages folder, select New-JSP file.
Exercise 4: Creating view component - JSP Task 1: Create a JSP for login page. a) Right click on the WebPages folder, select New-JSP file. b) Name it login.jsp and click Finish c) Write a form for login with the following input parameters: Login using MVC-DAO -ird Login Reset d) Submit the form to LoginServlet to validate the username and password in the custome database Task 2: Create a JSP for home page a) Create another JSP for home.jsp. b) Write a home page to display the username and logout hyperlink as below: titted front oration Soth Home Page Home Page Welcome ali Logo c) Perform the logout hyperlink to URL /LogoutServlet. Exercise 5: Creating Utility-Database connection - Java Class Task 1: Create a DoConnection java class. a) Right click on the Source package folder, select New--Package. Name it as util. b) Right click on the util package, select New-Class. Name it DBConnection and click Finish c) Write a method public static Connection createConnection () and the implementation code to establish a connection to the users table in customers database
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started