Question: 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

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 needed

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!