美文网首页
JSP路径写法问题

JSP路径写法问题

作者: youpd | 来源:发表于2018-11-08 10:37 被阅读0次

<%

  String path = request.getContextPath();

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

%>

<base href="<%=basePath%>">

<link rel="stylesheet" href="static/ace/css/chosen.css" />

重定向不能加“/”

./  代表ip+端口+应用上下文

/  代表ip+端口

相关文章

网友评论

      本文标题:JSP路径写法问题

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