Skip to main content

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.

The /CancelarPropuestas servlet retrieves the list of proposals owned by a specific Proponente that are eligible for cancellation and forwards them to CancelarPropuesta.jsp for display. From that page the user can navigate to the proposal detail view where the actual cancellation action is executed via POST /DetallesDePropuesta with accion=CANCELAR.
Cancellation is irreversible. Once a proposal’s state transitions to CANCELADA it cannot be reactivated. Any collaborators who have already paid will need to be handled according to the platform’s refund policy.

GET /CancelarPropuestas

Request parameters

nick
string
required
The nickname of the Proponente whose proposals should be listed. Passed through to the SOAP call controllerPort.getPropuestasCreadasPorProponente(nick) and also forwarded to the JSP as the nick request attribute.
tipo
string
The user type string (e.g. "Proponente"). Forwarded as-is to the JSP as the tipo request attribute, which CancelarPropuesta.jsp uses to render the profile navigation component.

Processing logic

  1. Calls controllerPort.getPropuestasCreadasPorProponente(nick) to retrieve all proposals created by that user.
  2. Filters the list to keep only proposals whose estadoAct is FINANCIADA — these are the proposals that qualify for cancellation in the current business rules.
  3. Sets the following request attributes and forwards to /CancelarPropuesta.jsp:
AttributeTypeValue
propuestasACancelarList<DtoPropuesta>Filtered list of FINANCIADA proposals
nickStringProponent nickname from the query parameter
tipoStringUser type from the query parameter
paginaStringFixed value "Cancelar" (used by the nav component)
If nick is an empty string the servlet skips all processing and returns without forwarding.

JSP behaviour

CancelarPropuesta.jsp shows a card for each eligible proposal with its title, category, current state, and publication date. Each card links to GET /DetallesDePropuesta?id=<titulo>, where the Proponente can trigger the cancellation using the Cancelar Propuesta button rendered when permisos == 1 and estadoAct == FINANCIADA.
The actual state change to CANCELADA is performed by POST /DetallesDePropuesta (with accion=CANCELAR), not by this servlet. /CancelarPropuestas is a read-only listing page — it does not modify any data.

Example

curl -i "http://localhost:8080/CulturarteWeb/CancelarPropuestas?nick=mariajose&tipo=Proponente" \
  --cookie "JSESSIONID=<your-session-id>"
A successful response forwards to CancelarPropuesta.jsp. If the user has no FINANCIADA proposals, the JSP displays the warning: “No se encontraron propuestas para cancelar.”
This endpoint is typically reached from the user profile navigation panel, which passes the current user’s nick and tipo automatically as query parameters.

Build docs developers (and LLMs) love