# habibabenm/gestion-des-etudiants architecture

> Architecture diagram of the GitHub repository habibabenm/gestion-des-etudiants, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/habibabenm/gestion-des-etudiants
- Repository: https://github.com/habibabenm/gestion-des-etudiants

## Overview

This is a JEE student-record management application. A browser request reaches the servlet, which handles student listing, creation, update, deletion, or CNE search; it delegates persistence to the JDBC method layer and renders JSP views. The model, JDBC connection, and DAO exception are the internal layers documented by the README. The source excerpts establish servlet-to-method and method-to-connection dependencies; SQL schema details and JSP rendering internals are not sampled, so those relationships are limited to documented routing and calls.

Main entry points: [`src/servlets/EtudiantServlet.java`](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/servlets/EtudiantServlet.java) (Student servlet), [`src/Method/EtudiantMeth.java`](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/EtudiantMeth.java) (Student operations), [`src/Method/ConnectionManager.java`](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/ConnectionManager.java) (JDBC connection), [`src/Dao/Etudiant.java`](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Dao/Etudiant.java) (Student model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interaction"]
  node_servlet["Student servlet"]
  node_add["Add form<br/>[ajout.jsp]"]
  node_list["Student list<br/>[list.jsp]"]
  node_delete["Delete form<br/>[delete.jsp]"]
  node_update["Update form<br/>[update.jsp]"]
  node_search["Search form<br/>[recherche.jsp]"]
end

subgraph group_domain["Student domain"]
  node_student["Student model<br/>[Etudiant.java]"]
end

subgraph group_persistence["JDBC persistence"]
  node_student_ops["Student operations<br/>[EtudiantMeth.java]"]
  node_connection["JDBC connection"]
  node_mysql[("MySQL database<br/>[Etudiant.sql]")]
end

subgraph group_errors["Error handling"]
  node_dao_error["DAO exception<br/>[DaoException.java]"]
end

node_browser(("Browser user"))

node_browser -->|"sends request"| node_servlet
node_servlet -->|"invokes operations"| node_student_ops
node_servlet -->|"forwards add"| node_add
node_servlet -->|"forwards list"| node_list
node_servlet -->|"forwards delete"| node_delete
node_servlet -->|"forwards update"| node_update
node_servlet -->|"forwards search"| node_search
node_servlet -->|"constructs model"| node_student
node_student_ops -->|"maps records"| node_student
node_student_ops -->|"uses connection"| node_connection
node_connection -->|"opens JDBC"| node_mysql
node_connection -->|"wraps failures"| node_dao_error
node_student_ops -->|"wraps SQL errors"| node_dao_error

click node_servlet "https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/servlets/EtudiantServlet.java"
click node_add "https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/ajout.jsp"
click node_list "https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/list.jsp"
click node_delete "https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/delete.jsp"
click node_update "https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/update.jsp"
click node_search "https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/recherche.jsp"
click node_student "https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Dao/Etudiant.java"
click node_student_ops "https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/EtudiantMeth.java"
click node_connection "https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/ConnectionManager.java"
click node_mysql "https://github.com/habibabenm/gestion-des-etudiants/blob/master/Etudiant.sql"
click node_dao_error "https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Exception/DaoException.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_servlet,node_add,node_list,node_delete,node_update,node_search,node_browser toneBlue
class node_student toneAmber
class node_student_ops,node_connection,node_mysql toneMint
class node_dao_error toneRose
```

## Components

### Web interaction

- [Student servlet](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/servlets/EtudiantServlet.java): `src/servlets/EtudiantServlet.java`
- [Add form](https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/ajout.jsp): `WebContent/WEB-INF/ajout.jsp`
- [Student list](https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/list.jsp): `WebContent/WEB-INF/list.jsp`
- [Delete form](https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/delete.jsp): `WebContent/WEB-INF/delete.jsp`
- [Update form](https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/update.jsp): `WebContent/WEB-INF/update.jsp`
- [Search form](https://github.com/habibabenm/gestion-des-etudiants/blob/master/WebContent/WEB-INF/recherche.jsp): `WebContent/WEB-INF/recherche.jsp`

### Student domain

- [Student model](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Dao/Etudiant.java): `src/Dao/Etudiant.java`

### JDBC persistence

- [Student operations](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/EtudiantMeth.java): `src/Method/EtudiantMeth.java`
- [JDBC connection](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Method/ConnectionManager.java): `src/Method/ConnectionManager.java`
- [MySQL database](https://github.com/habibabenm/gestion-des-etudiants/blob/master/Etudiant.sql): `Etudiant.sql`

### Error handling

- [DAO exception](https://github.com/habibabenm/gestion-des-etudiants/blob/master/src/Exception/DaoException.java): `src/Exception/DaoException.java`

### Other components

- **Browser user**

## Connections

- Browser user → Student servlet: sends request (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Student operations: invokes operations (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Add form: forwards add (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Student list: forwards list (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Delete form: forwards delete (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Update form: forwards update (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Search form: forwards search (evidence: `src/servlets/EtudiantServlet.java`)
- Student servlet → Student model: constructs model (evidence: `src/servlets/EtudiantServlet.java`)
- Student operations → Student model: maps records (evidence: `src/Method/EtudiantMeth.java`)
- Student operations → JDBC connection: uses connection (evidence: `src/Method/EtudiantMeth.java`)
- JDBC connection → MySQL database: opens JDBC (evidence: `src/Method/ConnectionManager.java`)
- JDBC connection → DAO exception: wraps failures (evidence: `src/Method/ConnectionManager.java`)
- Student operations → DAO exception: wraps SQL errors (evidence: `src/Method/EtudiantMeth.java`)
