https://github.com/hallowshaw/mvc-crud-java
https://github.com/hallowshaw/mvc-crud-java
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hallowshaw/mvc-crud-java
- Owner: hallowshaw
- Created: 2024-01-28T18:06:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-28T19:04:53.000Z (over 1 year ago)
- Last Synced: 2025-01-05T19:16:11.495Z (5 months ago)
- Language: Java
- Size: 2.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRUD Operations in MVC Pattern with JSP and Servlets
Welcome to the CRUD Operations in MVC (Model-View-Controller) pattern using JSP (JavaServer Pages) and Servlets! This repository serves as a comprehensive guide and implementation for performing CRUD operations on a MySQL database within the context of a Java web application.
## Table of Contents
1. [Introduction](#introduction)
2. [Features](#features)
3. [Technologies Used](#technologies-used)
4. [Project Structure](#project-structure)
5. [Usage](#usage)
6. [Contributing](#contributing)## Introduction
This project demonstrates the implementation of CRUD operations in a web application using the MVC design pattern. MVC helps to separate concerns in the application, making it easier to manage and maintain. The combination of JSP and Servlets provides a powerful and flexible environment for developing dynamic web applications.
## Features
- **Create:** Add new records to the database.
- **Read:** Retrieve and display existing records from the database.
- **Update:** Modify and update existing records in the database.
- **Delete:** Remove records from the database.## Technologies Used
- Java
- JSP (JavaServer Pages)
- Servlets
- MySQL
- HTML/CSS## Project Structure
The project follows a standard MVC structure:
- **Model:** Contains Java classes that represent the data and business logic.
- **View:** Consists of JSP files responsible for rendering the user interface.
- **Controller:** Servlets act as controllers, handling user requests, processing data, and managing the flow.```
|-- src
| |-- main
| |-- java
| |-- com.example
| |-- model
| |-- // Java classes representing data models
| |-- servlet
| |-- // Servlets handling requests and managing flow
|-- webapp
| |-- WEB-INF
| |-- views
| |-- // JSP files for rendering views
| |-- web.xml```
## Usage
- Access the application through your web browser at `http://localhost:8080/MVC-CRUD-JAVA`.
- Follow the links to perform CRUD operations and interact with the application.## Contributing
Feel free to contribute by opening issues, providing feedback, or submitting pull requests. Your contributions are highly appreciated!
Happy coding! 🚀