Click the text on the home page according to the id jump details page why is id the same every time?

template uses freemarker

                [-sharplist siteProductList as siteProduct]
                    <a id="goodsInfo" href="${base}/site/anon/siteIndex/goodsInfo.jhtml?siteProductId=${siteProduct.id}"
                       class="fullGoodsTxt [-sharpif siteProduct_index == 0]active[/-sharpif]">
                        <div class="fullGoodsLH">
                            <span>${siteProduct.prodName}</span>
                        </div>
                        <div class="fullGoodsLP">
                            <span>${siteProduct.prodSummary}</span>
                        </div>
                    </a>
                [/-sharplist]

clipboard.png

id

clipboard.png

,

clipboard.png

how to solve it.

Aug.21,2021

try annotated parameters

such as:

public String goodsInfo(@PathVariable("siteProductId") Long productId ...

is still a problem with front-end CSS.

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-1b3a2c8-2c1eb.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-1b3a2c8-2c1eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?