1. 首页
  2. 数据库
  3. 其它
  4. JSP页面文件中base标记用法实例分析

JSP页面文件中base标记用法实例分析

上传者: 2021-01-15 16:56:53上传 PDF文件 50.64KB 热度 17次
本文实例分析了JSP页面文件中base标记用法。分享给大家供大家参考,具体如下: 我们在用IDE工具生成JSP页面时通常都包含下面的两段代码, <% String path = request.getContextPath(); String basePath = request.getScheme()+://+request.getServerName()+:+request.getServerPort()+path+/; %> <head> <base href=<%=basePath%>> </head> 它们绝对不是无
下载地址
用户评论