Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Oracle SQL for database please 1. Create a table with a userid (number), username (varchar2), and password (varchar2). The table naming scheme should start
Use Oracle SQL for database please
1. Create a table with a userid (number), username (varchar2), and password (varchar2). The table naming scheme should start with your first and last initials followed by your employee id and then the table name. For example, my table would be kc741264_users. You do not have to encrypt the password!!! 2. Add a bean in the com.bean package for the user (create a User class with userld, username, and password). 3. Copy the DbCon class from one of the JDBC examples and add it to your project. You can do this by copying the com.utilities package and paste it into your project. 4. Create a UserDAO class that checks the database to see if the username and password matches. Ex SQL: select count(*) from your_table_name where name = ? and password = ? Your DAO should *NOT* return the password (doing so is a HUGE security risk!!!) 5. Update the servlet. Have it call the method in the DAO. If the username and password matches, have it display "Successful login" on the web page. Otherwise, have it display "Invalid username or password" on the web page. No other validation is needed. CSS is not neededStep 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