JSP頁面:
<c:choose>
<c:when test="${sessionScope.confirm_right=='y'}">
<input type="button" value="修改" οnclick="window.location.href('mold_actual_proc.jsp?mold_id='+document.moldForm.mold_id.value)">
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
ExtJs頁面:
提取 jsp頁面中URL傳遞來過的參數:
function GetRequest() {
var url = location.search; //提取url中"?"符后的字串
if (url.indexOf("?") != -1) { //判段是否有參數
var str = url.substr(1); //
strs = str.split("=");
mold_id=strs[1]
}
return mold_id;
}