The problem encountered by thymeleaf in doing a paging

The general idea of
  1. is to click on the previous page, the next page, to visit the URL, but when you click on the next page, the result of ${curpage+1} is always 11 instead of 2!

http://localhost:8080/bs/admin/users/?page=1

2.

            <div th:with="curpage=${-sharphttpServletRequest.getParameter("page")}">
                <a class="btn btn-sm btn-primary fpage"  th th:href="@{/admin/users/?page=}+(${curpage}==1?1:${curpage-1})"  ></a>
                <input  class="btn btn-sm btn-light "  th:value="${curpage}" id="page"  >
                <a class="btn btn-sm btn-primary apage"  th:href="@{/admin/users/?page=}+${curpage+1}"></a>
            </div>
Mar.23,2022

+ ${- sharpnumbers.formatDecimal (curpage) + 1} try this

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e60d9e-458e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e60d9e-458e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?