A web-based application for managing employee records, featuring user registration and login. Includes a user-friendly interface for sign-up and secure login. The backend uses Java Servlets to process form submissions and connects to a MySQL database for efficient and secure data management.
- User Registration: New employees can sign up by providing their details.
- User Login: Existing employees can log in securely using their employee number and password.
- Data Management: All employee information is stored in a MySQL database, ensuring data security and efficiency.
Login Screen: Employees can log in with their employee number and password.
Welcome Screen: Basic welcome page with their empployee no.
Registration Screen: New employees can sign up by filling out the form.
Registration Success Screen: When registration is successfull user will be redirected to log in page.
- Java Development Kit (JDK)
- Apache Tomcat Server
- MySQL Database
-
Clone the repository:
git clone https://github.com/yourusername/employee-management-system.git
-
Set up the MySQL database:
CREATE DATABASE employee_management; USE employee_management; CREATE TABLE emp_users ( emp_no INT AUTO_INCREMENT PRIMARY KEY, emp_name VARCHAR(100), department VARCHAR(50), password VARCHAR(50), gender VARCHAR(10), emp_job VARCHAR(50), );
-
Update the database configuration in the Java files:
- Update the database URL, username, and password in
Insert_Form_Records.java
andLoginServlet.java
.
- Update the database URL, username, and password in
-
Deploy the application on Apache Tomcat:
- Place the HTML files (
login.html
andRegister_Form.html
) in thewebapps/ROOT
directory of your Tomcat server. - Place the Java servlet files (
Insert_Form_Records.java
andLoginServlet.java
) in the appropriate directory for Java classes in your Tomcat project structure. Typically, this is underWEB-INF/classes/
.
- Place the HTML files (
-
Compile the Java servlets:
- Ensure your Java servlets are compiled. This may require setting up a build tool like Maven or manually compiling them.
-
Start the Tomcat server:
- Start your Apache Tomcat server.
-
Access the application:
- Open a web browser and go to
http://localhost:8080/
.
- Open a web browser and go to
-
Register a new employee:
- Go to the registration page and fill out the form.
- Submit the form to register the employee.
-
Login as an existing employee:
- Go to the login page.
- Enter your employee number and password to log in.
Contributions are welcome! Please fork the repository and submit a pull request for any improvements.