jsp的<base href>失效问题
2013-01-30 17:06
281 查看
<base href>:基准连接,让整个页面的连接前都加上href的值
jsp使用
1.在
2.注意路径前面是否多加了“/”
如:
应该改写为:
jsp使用
<base href="<%=basePath%>">失效的问题:
1.在
<base>之前不应该使用out.println()等打印字符
2.注意路径前面是否多加了“/”
如:
<img src="/images/edit.gif">
应该改写为:
<img src="images/edit.gif">
相关文章推荐
- (6)开发收获 <base href="<%=basePath%>">JSP页面中的相对路径问题
- MyEclipse中建立的jsp文件中<base href="<%=basePath%>">可能会带来的问题.
- 很简单的JSP问题,<base href="<%=basePath%>">这句话什么意思?
- JSP中相对路径问题 <base href="<%=basePath%>">
- JSP中<base href="<%=basePath%>">的作用
- JSP中<base href="<%=basePath%>">作用
- JSP中的 < base href="<%=basePath%>">作用
- JSP中<base href="<%=basePath%>">作用
- jqueryui 关于tabs与<base href="<%=basePath%>">冲突的问题
- JSP中<base href="<%=basePath%>">作用
- 转载:如何理解jsp页面中的“<base href="<%=basePath%>">”?
- 转载:如何理解jsp页面中的“<base href="<%=basePath%>">”?
- JSP中<base href="<%=basePath%>">对相对路径的影响
- JSP中<base href="<%=basePath%>">作用
- 如何理解jsp页面中的“<base href="<%=basePath%>">”?
- JSP中<base href="<%=basePath%>">作用
- JSP中<base href="<%=basePath%>">作用
- JSP中<base href="<%=basePath%>">作用
- 如何理解jsp页面中的“<base href="<%=basePath%>">”
- jsp中<basePath>问题