Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi , I ' d like you to answer this lab with every code that I need to write, there was a solution but it

Hi, I'd like you to answer this lab with every code that I need to write, there was a solution but it was not solved by coding. I'm using NetBeans with MySql to access php admin.
so please write the code for each file and if there is a filed where i need to add the path depending on my computer just add a comment to let me know.
Spring 2024
Lab 7
Objective:
The objective of this lab exercise is to know about JDBC.
This lab maps to CLO#3. This is a group homework.
Procedure:
Go through the handouts titled "JDBC.ppt"
Following the MVC architecture, we are going to build a web application that connects to a
database using JDBC to manage the database of employees in a company.
Make sure that you have a working connection before you start. Follow the installation
instructions in the "JDBC_Setup.pdf" document.
Create a database. Call it company.
From your MySQL Workbench, create a table in your database, call it employees. You may use
the following script:
create database company;
use company;
CREATE TABLE 'employees' (
'emp_id' int(11) NOT NULL AUTO_INCREMENT,
'empname' varchar(45) NOT NULL,
'password' varchar(45) NOT NULL,
'position' varchar(45) NOT NULL,
'email' varchar(45) NOT NULL,
'salary' int(6) NOT NULL,
PRIMARY KEY ('emp_id')
;
Make sure that your primary key ('emp_id') is AUTO_INCREMENT
Create a web-based application that connects to the company.employees database. This
application will enable the user to perform CRUD operations :
a. Create a new employee record and add it to the table.
b. Read and display the data of all employees in the table.
c. Update the information of any employee in the table.
d. Delete an employee record from the table.
You should follow the MVC architecture and choose your model (EmployeeBean), controller
(servlet), and view (JSPs).
You should not have to use the back button in your application. Always include the start page at
any point after your response.
Run and test your application, then submit your project as a .zip file (one submission per group).
Objective:
The objective of this lab exercise is to know about JDBC.
This lab maps to CLO#3. This is a group homework.
Procedure:
1. Go through the handouts titled JDBC.ppt
2. Following the MVC architecture, we are going to build a web application that connects to a
database using JDBC to manage the database of employees in a company.
3. Make sure that you have a working connection before you start. Follow the installation
instructions in the JDBC_Setup.pdf document.
4. Create a database. Call it company.
5. From your MySQL Workbench, create a table in your database, call it employees. You may use
the following script:
create database company;
use company;
CREATE TABLE 'employees' (
'emp_id' int(11) NOT NULL AUTO_INCREMENT,
'empname' varchar(45) NOT NULL,
'password' varchar(45) NOT NULL,
'position' varchar(45) NOT NULL,
'email' varchar(45) NOT NULL,
'salary' int(6) NOT NULL,
PRIMARY KEY ('emp_id')
);
6. Make sure that your primary key ('emp_id') is AUTO_INCREMENT
7. Create a web-based application that connects to the company.employees database. This
application will enable the user to perform CRUD operations :
a. Create a new employee record and add it to the table.
b. Read and display the data of all employees in the table.
c. Update the information of any employee in the table.
d. Delete an employee record from the table.
8. You should follow the MVC architecture and choose your model (EmployeeBean), controller
(servlet), and view (JSPs).
9. You should not have to use the back button in your application. Always include the start page at
any point after your response.
10. Run and test your application, then submit your project as a .zip file (one submission per group).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago