Teachers in the TEI are linked to a group and classroom. Each teacher has a login account with theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LuisAMoralesA/tallerIngles-UAEMEcatepec/llms.txt
Use this file to discover all available pages before exploring further.
PROFESOR role and a profile in the teachers table containing personal data, group assignment, classroom, and active/inactive status. The teacher list is accessible at /view/listas/listaProfesores.jsp.
Registrar un profesor
Navigate to Agregar Profesor
From the admin lateral menu, click Maestros to open the teacher list, then click the Agregar Profesor button. This navigates to
/view/add/agregarInformacion.jsp?add=2.Fill the registration form
Complete all required fields at
/view/add/agregarProfesor.jsp:- Apellido Paterno — first surname
- Apellido Materno — second surname
- Nombre — given name(s)
- Teléfono — contact phone number
- Email — contact email address
- Fecha de Nacimiento — birth date in
YYYY-MM-DDformat - Status del Profesor —
ActivoorInactivo - Grupo asignado — group ID (optional, nullable)
- Salón de clases — classroom identifier
- Contraseña — must be entered twice to confirm
Submit the form
The form submits via
POST to the addTeacher servlet (/tallerDeInglesUAEM/addTeacher), which:- Converts all name fields to uppercase
- Auto-generates a username from names and birthdate using the same pattern as students (
[AP1][AP2][AM1][N1][N2][N3][YY][MM][DD]) - Hashes the password with SHA-256 before storage
- Checks the
teacherstable for a duplicate username — if found, redirects to the teacher list with a warning and the conflicting username - Creates a new record in
users(role:PROFESOR) - Creates the final record in
teacherswith all provided field values
Parámetros del formulario
The following table lists the exactrequest.getParameter() keys read by both addTeacher and updateInfo (with rango=PROFESOR):
| Parámetro | Descripción |
|---|---|
apaterno | Apellido paterno (uppercased by servlet) |
amaterno | Apellido materno (uppercased by servlet) |
name | Nombre(s) (uppercased by servlet) |
birthdate | Fecha de nacimiento (YYYY-MM-DD) |
phone | Teléfono de contacto |
email | Correo electrónico |
status | Estado del profesor: Activo or Inactivo |
grupo | ID del grupo asignado (integer, from grupos catalog) |
classroom | Salón de clases asignado |
password1 | Contraseña (enrollment only) |
password2 | Confirmación de contraseña (enrollment only) |
grupo field links the teacher to an entry in the grupos table via the id_group_teacher foreign key. It may be left empty at registration time and assigned later via the edit form.
Actualizar información
The same dual-update model used for students applies to teachers:-
Información personal (
POST /tallerDeInglesUAEM/updateInfowithrango=PROFESOR): Updates name fields, phone, email, birthdate, status, group assignment, and classroom. The form is at/view/update/actualizarInformacion.jsp. After a successful update, the administrator is redirected to/view/listas/listaProfesores.jsp. -
Credenciales de acceso (
POST /tallerDeInglesUAEM/updateUserwithrango=PROFESOR): Updates the username and password in theuserstable. The new password is re-hashed with SHA-256. Both password fields must match or the update is rejected. The form is at/view/update/actualizarUsuario.jsp.
Eliminar un profesor
Deletion posts toPOST /tallerDeInglesUAEM/deleteInformation with parameters rango=t, the teacher’s id, and their associated user id. The servlet executes the following sequence:
Desvincular alumnos
Calls
bd.desvincularAlumnos(id_teacher) — sets id_teacher_student = NULL for all students currently assigned to this teacher.Eliminar registro del profesor
Calls
bd.eliminarTeacher(id_teacher) — removes the row from the teachers table.