如何实现通过右键查看源代码来查看jsp页面的名字

在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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值