TheDocumentation 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.
/Colaboraciones and /bajaColaboracion servlets manage the full collaboration lifecycle on CulturarteWeb. A Colaborador can view all their active contributions to proposals through /Colaboraciones, and then cancel any unpaid collaboration at any time using /bajaColaboracion. Both endpoints communicate with the back-end via the ControllerWS SOAP service, whose connection details (host, port, and service path) are resolved at runtime from config.properties.
GET /Colaboraciones
Retrieves all collaborations associated with a given user nick and forwards the result toColaboraciones.jsp for rendering.
Query parameters
The username (nick) whose collaborations are to be listed. Passed directly to
portU.colaboraciones(nick) on the SOAP service. The request is skipped entirely if this value is an empty string.The user’s profile type (e.g.
Colaborador or Proponente). This value is set as a request attribute and used by the JSP to conditionally render role-specific UI elements.Behavior
- Reads
WEB_SERVICES_HOST,WEB_SERVICES_PORT, andSERVICEfromconfig.propertiesto build the WSDL URL dynamically. - Calls
portU.colaboraciones(nick)on theControllerWSSOAP port, which returns aList<DtoColaboracion>. - Sets the following request attributes before forwarding:
| Attribute | Type | Value |
|---|---|---|
Colaboraciones | List<DtoColaboracion> | Full list of collaborations for the user |
nick | String | The value of the nick query parameter |
tipo | String | The value of the tipo query parameter |
pagina | String | The literal string "Colaboraciones" |
- Forwards the request to
/Colaboraciones.jsp.
doGet is implemented — there is no doPost on this servlet.
Example request
What Colaboraciones.jsp renders
The JSP iterates over the Colaboraciones attribute and renders a card for each entry. Each card displays the proposal title, amount, creation date, and chosen return type (TipoRetorno). The JSP also conditionally shows two action buttons for the logged-in owner of each collaboration:
- Eliminar — triggers the
bajaColaboracion.jsscript (DELETE via fetch) to cancel the collaboration. - Generar PDF de pago — visible only when
colab.getDatosPago() != null(i.e., the collaboration has been paid). Opens a preview modal that POSTs to/GenerarConstancia.
DELETE /bajaColaboracion
Cancels (withdraws) a collaboration by its numeric ID. Invoked asynchronously bybajaColaboracion.js via fetch with method: 'DELETE'.
Query parameters
The numeric ID of the collaboration to cancel. Internally cast to
Long and passed to portU.cancelarColaboracion(Long.valueOf(id)) on the SOAP service.Behavior
- Sets the response
Content-Typetoapplication/json; charset=UTF-8. - Calls
portU.cancelarColaboracion(Long.valueOf(id))on the SOAP port. - Returns a JSON body in all cases:
bajaColaboracion.js) removes the collaboration card from the DOM when resp is true, without reloading the page.