Write a program using JSP and JDBC to support editing (address modification, mobile number/ email id update) of MCA 1st Semester students of IGNOU. The program should take enrollment number or registered mobile number as input. Make necessary assumptions required.
To create a program using JSP (JavaServer Pages) and JDBC (Java Database Connectivity) for editing the details (address modification, mobile number/email ID update) of MCA 1st Semester students of IGNOU, we need to set up a web application that allows students to update their information based on their enrollment number or registered mobile number. Below are the steps and the necessary code snippets to achieve this.
### Assumptions
1. A MySQL database named `ignou` with a table `students` exists.
2. The `students` table has the following structure:
```sql
CREATE TABLE students (
id INT AUTO_INCREMENT PRIMARY KEY,
enrollment_number VARCHAR(20) UNIQUE,
name VARCHAR(100),
address VARCHAR(255),
mobile_number VARCHAR(15),
email_id VARCHAR(100)
);
```
3. The database is hosted on `localhost` with the username `root` and password `password`.
### Steps to Create the Program
1. Database Connection Setup
Create a utility class `DBConnection.java` to handle database connections.
_______ ___ _______ ____ _______ _________.
______ ________ _____ _______ ____ _____ __________ ____ ______ ____.
_______ _______ _______ _____ _________ _______ ___ _________.
____ _______ ______ _______ ___ _______ _____ __________ ____ __________ _________ ____.
_________ ______ _______ _______ _________ ___ ________ ________.
_____ _________ _____ ________ ________ ______ ______.
____ ______ _______ ________ _____ ____ _______ _________.
____ _______ ______ _________ ________ ________ ____ __________.
____ _______ ___ ______ _________ ____.
_______ _______ ___ ____ ____.
__________ _____ ______ _____ _____.
_____ ________ ________ _________ __________ __________ ___ _______ ________ _________ ___ _________.
__________ _________ ___ ___ ________ _______ _____.
_______ ______ ___ _______ __________ ______ _____ __________ ___ ________.
________ ________ ________ _______ _________ ______ _________ _____ __________.
__________ _________ __________ ________ _________.
________ _______ ______ ________ _____ _________ ____ _______ _________.
________ _________ ________ __________ __________ ___ _________ ___ _________ __________ _____ _____.
__________ _______ ____ __________ _________ ______ __________ ________ __________ _______.
_____ ___ _____ __________ _____ _____ ______ _____ _________.
_______ ______ ______ ______ ______ ________ ___ _______ ______ _____ _____ _____.
______ _________ __________ _______ _______ ____ ____ ___ _________ ___ ____.
____ __________ ___ _______ ___ ________ ____ ____ _________ _______ ________ ___.
___ ____ ______ ______ ______ ________ _____ ____ _________ ____ _______ ________.
_______ _____ __________ __________ ____ ______ __________ ______ __________ _________.
__________ ________ ______ _________ ___.
_____ _________ ___ _______ ____ ______ ________ _____ ________ __________.
__________ __________ _____ _______ ___ _______ _______ ___ ____ _______ __________ _____.
_________ ______ __________ ___ ______ ____ _____ ______.
_____ _______ ____ _________ _________ ______ ______ _____.
__________ ____ ______ ____ ____ ___ __________ _____ ___ ____.
______ ____ _____ ___ ___ _____ _____ ____ ______ ______ ___.
____ __________ _________ ________ __________ __________ _________ _________ ________ ______.
______ ______ ______ __________ __________ ________ ___ __________ _________ _________ ________.
____ _________ _____ ______ ______ ___ ____ ________ ___ ______ _________.
__________ _______ ________ _________ _________ ________ __________ _______.
_________ _______ ___ _________ ________ _____ _____ ______ ___.
________ _________ ________ ________ _______.
________ ____ _____ __________ ______ ___ _____ __________ _______ _________ _______ _________.
____ ___ ______ ____ _____ __________ __________ _________ ___ __________ _________.
___ ______ ______ _____ __________ ______ ___ ____ ___.
_______ ___ ________ _______ ________ ______.
___ ________ ____ ____ __________ ____ _______ _________ ____ ________ __________ ____.
______ __________ _____ _____ ____ ___ _______.
__________ _____ ______ _______ ______ __________.
_________ __________ _____ _____ ____ _______ ______ __________ __________ ________.
_________ _________ ______ ___ ________ ____ ______ _____ ___ ________ ______ __________.
________ _____ _________ ______ __________ __________ _____ __________ ______ __________.
______ ______ ____ _____ ___ ________ _____ _____ _______ _______ ________.
____ _____ _____ _________ __________ ____ ________.
___ __________ ___ ________ _____ _____ ________.
___ ____ __________ ___ _____ ________ _____ ____ ______ _______ ___ ____.
_______ ________ ________ _______ ______ _________ _____ _________.
___ ______ __________ ________ ____ ________ _______ _______ _______ ____ ________ _____.
_______ ___ _____ ______ _______.
_______ _______ ________ _____ ________ _____ ________ ________ _________ _____ ______ __________.
____ ____ ____ _______ _________.
_________ ____ _____ _________ _____ _________ ________ __________ ____ ___ ___.
___ ___ ________ _________ ___ _______ ______ _______ __________ ________.
____ ____ ________ ________ ___ _________ ____.
_______ _________ __________ ___ ______ ______ ______ __________ _______.
_________ ______ _________ _________ ______.
_______ ___ _____ ___ _____ ____ _________ __________ ___ __________ _________.
______ _________ _____ _______ ___ ______ ______.
_____ ___ ______ _______ ________ _____ _____.
_______ ______ _________ ____ _____ _____ ________ ______.
_____ ______ ____ ___ ______ _______ ______ ______.
___ ____ ___ ___ ______ _________ ________ ____ ______ _______ __________ _________.
__________ _________ ____ _________ ______ __________ ______ _______ ____ _______ __________ _________.
_______ _____ ______ _____ _________ ______ _________.
_________ ______ __________ _________ ____ ___ _______ _____.
_______ _______ ____ _____ ___ ___.
____ _______ ________ ___ _____ ___ _________.
________ _____ ______ ____ __________.
____ ________ _____ __________ _________ ____ ____ _____ __________ _______ _______.
___ ______ _________ ___ _____ ___ ________ ___ __________ __________.
______ _______ _____ _______ ________ ________ _________ ___ ________.
___ ____ ____ _______ ___ _____ ____.
______ __________ __________ _________ ____ _____.
_________ ______ ___ ____ ___.
___ ______ ________ _____ ___.
______ ______ _______ ________ _______ ________ ______.
___ _______ ________ _______ _______ ___ ___ _________ ____.
_______ _________ ________ ___ ____ ________ ____ __________ ________.
______ __________ ________ ____ ________ __________ __________ __________ ____ __________ _________.
_________ __________ __________ _____ ___ _______ _______ __________.
_________ ________ ______ __________ ________ _______ ________ ________.
_______ _______ _________ ___ ________ _______ ________ _________ ____ _____ ____ _______.
__________ _____ ______ __________ _____ ________ __________ ___.
____ ______ _______ _________ _____ _________ _______.
____ ___ ______ _____ ____.
___ _______ ______ ____ ________ ________ ______ ________.
___ __________ _____ ____ __________.
___ ________ ________ ________ _____ _____ __________ ________ ______ ________.
_______ _____ _______ __________ ________ _____ ________.
___ ______ _______ _____ _____ _______ ______.
___ ______ ___ ________ ____ ______ _______ ___.
____ _______ _________ ______ __________ _________ ___ _____ _______ _______ ___.
____ ______ ____ __________ _____ ___ _____ ____.
____ ______ _________ ___ ______.
____ __________ __________ ______ _____ ________ ______.
_______ _________ ________ _________ ____ ________ ______ ________ ___ _____ ___ ________.
___ _____ _____ _______ __________ _______ ______ _________ __________ __________ ________.
___ ___ ________ ____ _________ _____ ______ ________ __________ ________ _______.
___ _________ ___ ____ _______ ______.
__________.
Get Full Answer on WhatsApp