seeyou8286 2010-07-24 23:44
浏览 938
已采纳

<base href="<%=basePath%>">什么意思?

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

  • 写回答

1条回答 默认 最新

  • pgy20032000 2010-07-25 11:19
    关注

    path是项目的根路径(如:http://localhost:8080/yourProject) basePath是在path后面加了一个/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?