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.

Menu