美文网首页
jsp 加载公用js

jsp 加载公用js

作者: 小郭米 | 来源:发表于2018-07-24 10:20 被阅读11次

common.jsp

<%

String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();

    request.setAttribute("basePath", basePath);

%>

页面引用

link rel="stylesheet" type="text/css" href="${basePath}/css/jquery.validate.css"

相关文章

网友评论

      本文标题:jsp 加载公用js

      本文链接:https://www.haomeiwen.com/subject/wnkemftx.html