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 /RankUsuario servlet drives the community leaderboard in CulturarteWeb. It asks the back-end SOAP service for an ordered list of all users ranked by their follower count, then forwards the result to RankingUsuarios.jsp for display. The ranking gives the community a quick way to identify the most-followed and most-active contributors on the platform, encouraging healthy engagement.

GET /RankUsuario

Fetches a ranked list of all users and forwards to the ranking view.

Request parameters

This endpoint takes no query parameters.

Behavior

  1. Reads WEB_SERVICES_HOST, WEB_SERVICES_PORT, and SERVICE from config.properties to build the WSDL URL dynamically.
  2. Instantiates ControllerWS_Service and obtains the ControllerWS port.
  3. Calls portU.rankingUsuarios() on the SOAP back-end, which returns a List<DtoUsuario> already ordered by rank (descending follower count).
  4. Sets the following request attribute for the JSP:
AttributeTypeDescription
RankUserList<DtoUsuario>Ordered list of all users with their follower counts
  1. Forwards to /RankingUsuarios.jsp.

JSP rendering

RankingUsuarios.jsp reads the RankUser attribute and renders a Bootstrap table with three columns:
ColumnSource fieldDescription
#Loop counterPosition in the ranking (1-based)
Usuariou.getNickname()The user’s nickname
Cant Seguidoresu.getCantSeguidores()Total number of followers
Each table row is clickable and navigates to PerfilUsuario?nick=<nickname>&tipo=<tipoUsr>, letting visitors jump directly to any ranked user’s full profile.

What “rank” means

The ranking is built by the back-end’s rankingUsuarios() operation and is ordered by cantSeguidores — the total number of followers a user has accumulated. A user climbs the leaderboard by creating compelling proposals that attract collaborators and by being an active participant in the community. Because Colaborador users fund proposals and Proponente users publish them, both types appear in the ranking and can reach the top spot.

Example

curl -X GET "http://localhost:8080/CulturarteWeb/RankUsuario" \
  -H "Cookie: JSESSIONID=<your-session-id>"

Sample response (forwarded to JSP)

The servlet itself does not return a JSON body — it forwards to the JSP. The underlying data structure passed to the view looks like:
[
  { "nickname": "creatividad99", "tipoUsr": "Proponente", "cantSeguidores": 142 },
  { "nickname": "artecolectivo", "tipoUsr": "Proponente", "cantSeguidores": 98  },
  { "nickname": "mecenas2024",   "tipoUsr": "Colaborador", "cantSeguidores": 75  }
]
The ranking is a direct incentive for Colaboradores to fund more proposals. The more a Colaborador supports quality projects, the more followers they attract from the community — boosting their own leaderboard position and reinforcing a virtuous cycle of cultural funding and recognition.
The list returned by rankingUsuarios() is pre-sorted by the SOAP back-end service. No client-side or servlet-level sorting is applied. If you need a differently ordered view, a new web-service operation would be required.

Build docs developers (and LLMs) love