//html中
<tr height="30" bgcolor="#F1F1F1">
<td width="128" class="tb11">接口設備類型</td><td class="tb12"><Property value="undevice.type"/></td>
</tr>
<tr height="30" bgcolor="#F1F1F1">
<td width="128" class="tb11">區域</td>
<td class="tb12">
//通過外鍵的值將外鍵表中的數據顯示在頁面中!
<select name="undevice.areaid">
<Iterator value="areas" var="a"><Option value="<Property value="a.id"/>"><Property value="a.name"/></option>
</Iterator>
</select>
//將選中的數據導入到數據庫中
document.getElementsByName("undevice.areaid").item(0).value="<Property value="undevice.areaid"/>";
</script>
</td>
</tr>