像页面转跳失效问题肯定是路径的问题。建议改相对路径为绝对路径。
引用css:
转: http://jnotnull.iteye.com/blog/198735
- String path = request.getContextPath();
- String basePase = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String path = request.getContextPath();
String basePase = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
引用css:
- <link rel="stylesheet" type="text/css" href="<%=basePath%>main.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>main.css">
转: http://jnotnull.iteye.com/blog/198735
本文介绍了如何通过修改路径设置来解决页面转跳失效的问题。推荐使用绝对路径替代相对路径,并提供了具体的Java代码示例及HTML引用样式。
151

被折叠的 条评论
为什么被折叠?



