<% String path = request.getContextPath() ;%>
然后你的<a href="<%=path%>"+"/p1.html"> p1 </a>
try it !!!
然后你的<a href="<%=path%>"+"/p1.html"> p1 </a>
try it !!!
解决方案 »
- 有个整数1234,写个方法将其反转结果为4321(如果是1230,结果为321),考虑负数
- String解析
- 如何在axis上部署多个服务,求部署文件,wsdd
- 品高软件 笔试
- 请问getServletConfig().getServletContext().getInitParameter("ResourcePort");什么意思
- 第一个Struts出错了~~~~~~
- 请问如何把struts-config.xml里的ACTION配置放在几个不同的文件里?
- 谁有《J2EE核心模式》发给我!
- MyEclipse开发Struts+Hibernate 的菜鸟级问题
- crossdom.xml做什么的? Resource Path Location Type Referenced file contains errors
- 关于hibernate的JDBC的查询方式问题
- resin问题,同文件不同名,为什么一个会返回主页,如果index.html不存在的话,会列出根目录
加上他表示绝对路径,去掉表示相对路径。