CulturarteWeb features a social follow system that lets any registered user subscribe to another user’s activity. The system is fully AJAX-driven: the follow and unfollow actions are triggered from JavaScript without a full-page reload, and the follow icon on profile pages updates dynamically to reflect the current relationship. The follow graph is persisted by the back-end SOAP web service and is consulted in real time whenever a profile page loads.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/17Franco/CulturarteWeb/llms.txt
Use this file to discover all available pages before exploring further.
POST /Seguir
Creates a follow relationship between two users — theseguidor (follower) begins following the seguido (followed user).
Request parameters
The nickname of the user who wants to follow someone (the logged-in user initiating the action).
The nickname of the user to be followed (the profile being visited).
Behavior
- Reads service coordinates from
config.propertiesand instantiatesControllerWS_Service. - Calls
portU.seguir(seguidor, seguido)on the SOAP back-end. - Returns a JSON response indicating whether the operation succeeded.
Response (JSON)
Example
JavaScript client (Seguir.js)
The front-end calls this endpoint using theseguir() async function defined in JS/Seguir.js. On a successful response (data.resp === true) it immediately invokes actualizarIcono() to swap the UI button from “Follow” to “Unfollow” without reloading the page.
The
Content-Type must be application/x-www-form-urlencoded. The servlet reads seguidor and seguido via request.getParameter() and does not accept JSON request bodies.POST /DejarDeSeguir
Removes an existing follow relationship between two users.Request parameters
The nickname of the user who wants to unfollow (the logged-in user).
The nickname of the user to unfollow.
Behavior
- Reads service coordinates from
config.propertiesand instantiatesControllerWS_Service. - Calls
portU.unFollowUser(seguidor, seguido)on the SOAP back-end. - Returns a JSON response indicating whether the operation succeeded.
Response (JSON)
Example
JavaScript client (DejarDeSeguir.js)
The front-end calls this endpoint usingdejarDeSeguir() defined in JS/DejarDeSeguir.js. The function handles two distinct UI contexts via the accion parameter:
"Perfil"— the user is on someone’s profile page; on success,actualizarIcono()is called to swap the icon back to “Follow”."Seguidos"— the user is on the “Users I Follow” list; on success, the card for the unfollowed user is removed from the DOM entirely.
GET /SigueAUsuario
Checks whether a given user currently follows another. Used on page load to determine which icon (Follow or Unfollow) to render on a profile page.Request parameters
The nickname of the user whose follow state is being checked (typically the logged-in user).
The nickname of the user being checked against (the profile being viewed).
Behavior
- Reads service coordinates from
config.propertiesand instantiatesControllerWS_Service. - Calls
portU.sigueAUsuario(seguidor, seguido)on the SOAP back-end, which returns aboolean. - Returns a JSON response with the key
"seguido".
Response (JSON)
Example
JavaScript client (MostrarIconoSeguirODejarDeSeguir.js)
OnDOMContentLoaded, the profile page runs the following logic to decide which icon to show. The global JS variables USUARIO_OBJETIVO (the profile owner’s nick) and USUARIO_LOGUEADO (the session user’s nick) are injected server-side by the JSP.
The
iconoSeguir container is only rendered by the JSP when the logged-in user is not the profile owner. If USUARIO_LOGUEADO equals USUARIO_OBJETIVO, no icon is shown and this script has no effect.GET /Seguidores
Retrieves the list of all users who follow a given user and forwards to the followers view.Request parameters
The nickname of the user whose followers you want to list.
The account type of the profile user (
Proponente or Colaborador). Passed through to the JSP for navigation context.Behavior
- Calls
portU.getSeguidores(nick)on the SOAP back-end. - Returns a
List<DtoUsuario>of all users followingnick. - Sets the following request attributes:
| Attribute | Type | Description |
|---|---|---|
Seguidores | List<DtoUsuario> | Users who follow nick |
nick | String | The queried user’s nickname |
tipo | String | The queried user’s account type |
pagina | String | Always "Seguidores" — used by the shared nav component |
- Forwards to
/Seguidores.jsp.
JSP rendering
Seguidores.jsp iterates over the Seguidores list and renders a card for each follower showing their avatar and a clickable link to PerfilUsuario?nick=…&tipo=….
Example
GET /UsuariosSeguidos
Retrieves the list of all users that a given user is following and forwards to the following view.Request parameters
The nickname of the user whose following list you want to view.
The account type of the profile user. Passed through to the JSP for navigation context.
Behavior
- Calls
portU.seguidos(nick)on the SOAP back-end. - Returns a
List<DtoUsuario>of all users thatnickis currently following. - Sets the following request attributes:
| Attribute | Type | Description |
|---|---|---|
UsuariosSeguidos | List<DtoUsuario> | Users that nick follows |
nick | String | The queried user’s nickname |
tipo | String | The queried user’s account type |
pagina | String | Always "Seguidos" — used by the shared nav component |
- Forwards to
/UsuarioSeguidos.jsp.
Example
From the
/UsuarioSeguidos.jsp view, the logged-in user can unfollow any of the listed users. The unfollow action calls POST /DejarDeSeguir with accion="Seguidos", which removes the corresponding card from the DOM without a full-page reload.