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.
/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
- Reads
WEB_SERVICES_HOST,WEB_SERVICES_PORT, andSERVICEfromconfig.propertiesto build the WSDL URL dynamically. - Instantiates
ControllerWS_Serviceand obtains theControllerWSport. - Calls
portU.rankingUsuarios()on the SOAP back-end, which returns aList<DtoUsuario>already ordered by rank (descending follower count). - Sets the following request attribute for the JSP:
| Attribute | Type | Description |
|---|---|---|
RankUser | List<DtoUsuario> | Ordered list of all users with their follower counts |
- Forwards to
/RankingUsuarios.jsp.
JSP rendering
RankingUsuarios.jsp reads the RankUser attribute and renders a Bootstrap table with three columns:
| Column | Source field | Description |
|---|---|---|
# | Loop counter | Position in the ranking (1-based) |
Usuario | u.getNickname() | The user’s nickname |
Cant Seguidores | u.getCantSeguidores() | Total number of followers |
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’srankingUsuarios() 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
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: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.