CRUD operations in Employee management using Spring, jQuery, Ajax, JSTL, JDBC, MySQL, Maven and developed using Eclipse IDE

In this example  we are seeing how to develop CRUD (Create, Read, Update and Delete) operation application using technologies Java, spring, JSP, JSTL, JDBC, MySQL, Ajax, jQuery and Maven. Application is developed using eclipse IDE. In this example all operations are performed on Employee basic properties like employee number, first name, last name and department name. Application main aim is adding employee details to DB using user interface, and performing multiple operations like update, viewing and deleting.

Below, find the Test cases and flow of the application.

















Create Employee Query:

CREATE TABLE `employee` (
  `EMP_NO` int(11) DEFAULT NULL,
  `FIRST_NAME` varchar(30) DEFAULT NULL,
  `LAST_NAME` varchar(30) DEFAULT NULL,
  `DEPT_NAME` varchar(30) DEFAULT NULL
);

Insert Employee Query:

insert into employee values(1,'Gurugubelli','G','Technology');
insert into employee values(2,'Gurugubelli','Tech','Developer');
insert into employee values(3,'Employee','E','Dept 1');

Project Structure:



Required dependencies(Java libraries) :
pom.xml

EmployeeController.java
EmployeeService.java
EmployeeServiceImpl.java
EmployeeDao.java
EmployeeDaoImpl.java
GurugubelliUtil.java
Employee.java
home.jsp
menu.jsp
addEmployee.jsp
listOfEmployee.jsp
updateEmployee.jsp
deleteEmployee.jsp
CRUD operations in Employee management using Spring, jQuery, Ajax, JSTL, JDBC, MySQL, Maven and developed using Eclipse IDE CRUD operations in Employee management using Spring, jQuery, Ajax, JSTL, JDBC, MySQL, Maven and developed using Eclipse IDE Reviewed by Gurugubelli Technologies on February 08, 2018 Rating: 5

22 comments:

  1. Util class is missing ... please upload it bro ...

    ReplyDelete
    Replies
    1. Thanks, Please note that post is updated with GurugubelliUtil.java class.

      Delete
  2. Replies
    1. Thanks Amit for your comment. Please note that post is updated with GurugubelliUtil.java class.

      Delete
  3. Replies
    1. Thanks for your comment. Please note that post is updated with GurugubelliUtil.java class.

      Delete
  4. Replies
    1. Hi, Please check once, GurugubelliUtil.java class is added after EmployeeDaoImpl.java class

      Delete
  5. Hi, where is the menu.html file?

    ReplyDelete
  6. Please code to be downloaded

    ReplyDelete
  7. Can you write code for login using username and password saved details from mysql database

    ReplyDelete
  8. Can you write code for login using username and password saved details from mysql database in this same project file

    ReplyDelete
  9. Can you explain updateeEmployee method with parameters what is the value sent to it from ajax
    i'm getting empNo as null value

    ReplyDelete
  10. what is the DB name of this project

    ReplyDelete
  11. where is menu.html file

    ReplyDelete
  12. you have uploaded wrong menu.html code

    ReplyDelete
  13. datasourse getConnection () and servlet dispatcher.xml file is missing. Can you please provide this complete project in zip

    ReplyDelete
  14. Wrost project no db file no plugins wasted my 2hours of time don't use this code for trail

    ReplyDelete

Powered by Blogger.