在html或jsp文件中的<head></head>中加入<html:base/>
然后我们就可以在应用的时候通过右键->查看源代码中找到页面的名称了
示例如下:
<html>
<head>
<base href="http://localhost:8091/business/drawbill.jsp">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link href="../css/style.css" type="text/css" rel="stylesheet">
<script src="../js/public.js" language="javascript"></script>
<script src="../js/tableValidate.js" language="javascript"></script>
<title></title>
<script language="javaScript">
function submitForm(){
var rows = document.all.mmTable.rows.length;
if (rows<4){
alert("对不起,本单没有物资申请信息,不能提交! ");
return false;
}
//验证及提交
if(validate('billTable','left') && validate('billBottomTable','left') && validate('mmTable','top')){
if(confirm("本单将提交至领导审批,您确定要执行当前操作吗?")){
document.theForm.refer.value='正在提交,请稍候...';
document.theForm.refer2.value='正在提交,请稍候...';
document.theForm.refer.disabled=true;
document.theForm.refer2.disabled=true;
document.all.theForm.action="submitDrawBill.do";
document.all.theForm.submit();
return true;
}
}
}
function saveForm(){
if(confirm("本单将保存,您确定要执行当前操作吗?")){
document.theForm.refer.value='正在保存,请稍候...';
document.theForm.refer2.value='正在保存,请稍候...';
document.theForm.refer.disabled=true;
document.theForm.refer2.disabled=true;
document.all.theForm.action="saveDrawBill.do";
document.all.theForm.submit();
return true;
}
}
</script>
</head>