用eclipse写 jsp include file 路径问题

2025-01-05 17:40:38
推荐回答(1个)
回答1:

加上这些试试,在标签外部(上面)加上
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
然后在标签内部加上