I got the below code:如何通過國家ID到<a href> tag?
<form method="post" accept-charset="UTF-8" action="showPartners.action?" id="_form" onsubmit="return selCheck();">
<div style="float: left; width: 350px;">
<span class="text_vert"> Select Country : </span>
<s:select style="width:200px;" onchange="loadBusinessList();"
headerKey="-1" headerValue="Country Select" list="couList"
listKey="idCountry" listValue="label" id="countryId"
name="countryId">
</s:select>
</div>
<a href='addPartner.action?height=550&width=850&id=<s:property value="countryId"/>'" >Insert</a>
</form>
What I need to do is to pass the country ID to the link in the a href tag, but what I get is the ID=0.
I would appreciate any help.
謝謝你的回覆。 您的解決方案會生成一個鏈接:「http:// localhost:8080/admin/addPartner.action?height = 550&width = 850148」。 「id =」丟失。一旦我選擇了國家並想改變選擇,該ID就不會第二次更新。任何消化? – TheKolanN