//获取根目录
${pageContext.request.contextPath}
//(父页面提交,嵌入页面显示)提交表单,设置响应方法和返回结果页面显示在frame中
<input type="hidden" name="method" value="queryP2pRptAppInfo"/>
<td><iframe id="frame1" style="border: 0px;" frameborder="0" framespacing="0" width="100%" marginheight="0" height="800" marginwidth="0" name="frame1" vspale="0" scrolling="no" src="${pageContext.request.contextPath}/p2pRptAppInfoAction.do?method=queryP2pRptAppInfo"></iframe></td>
function queryP2pRptAppInfo() {
document.getElementsByName("method")[0].value='queryP2pRptAppInfo';
document.forms[0].target = "frame1";
document.forms[0].submit();
}
//不提交表单,发送请求
function createAppInfoRpt() {
window.location.href="${pageContext.request.contextPath}/p2pRptAppInfoAction.do?method=createAppInfoRpt";
}
//调用后父页面刷新
window.parent.location="${pageContext.request.contextPath}/p2pPaySalaryAppointMentAction.do?method=finiser&loanNo="+loanNo;
//子页面获取父页面中的内容
var parForm = window.parent.document.forms[0];
var obj_parRows = window.parent.document.getElementById("icount");
//按下Enter键触发事件
document.onkeydown = enterSubmit;
function enterSubmit(){
if(event.keyCode == 13){
doSubmit();
}
}
function doSubmit(){
if(checkInput()){
document.all("method").value="mainP2pAppInfoCovert";
document.forms[0].submit();
}
}
//返回
function back(){
window.navigate("${pageContext.request.contextPath}/p2pAppInfoAction.do?method=queryP2pAppInfoCovertInit");
}
//设置表单请求路径式提交
var form=document.forms[0];
form.action="${pageContext.request.contextPath}/p2pOuterInfoAction.do?method=regret";
form.submit();
//a
<a href="javascript: approveInit('${po.priNumber}')">审批</a>
<a href="#" onclick="viewApply('${po.priNumber}')" >查看</a>
<a href="javascript:void(0);" onclick="goAppInfoNew('${obj.loanContractNo}')"/>申请录入</a>
//复选框自动选中
<c:forEach items="${areaList}" var="po">
<html:multibox property="areaNoArry" value="${po.nodeNo }" />${po.nodeName }
</c:forEach>