页面中的路径
.\images\myPicture 和 images\myPicture 表示的路径是一样的。表示的是当前html或jsp与images是同级的
..\images\myPicture 表示 images 目录比当前页面所在路径级别高
<hr size="6" color="red"/> 横线
<a href="http://www.sina.com.cn">连接到新浪</a> 默认在本窗口打开
<a href="http://www.sina.com.cn" target="_self">连接到新浪</a> 在本窗口打开
<a href="http://www.sina.com.cn" target="_blank">连接到新浪</a> 在弹出窗口打开
关于request表示的路径:
http://localhost:8080/project_name/admin/add.do
request.getRequestURI() ——〉/project_name/admin.do
request.getRequestURL() ——〉http://localhost:8080/project_name/admin/add.do
request.getServletPath()——〉/admin/add.do
request.getContextPath()——〉/project_name
.\images\myPicture 和 images\myPicture 表示的路径是一样的。表示的是当前html或jsp与images是同级的
..\images\myPicture 表示 images 目录比当前页面所在路径级别高
<hr size="6" color="red"/> 横线
<a href="http://www.sina.com.cn">连接到新浪</a> 默认在本窗口打开
<a href="http://www.sina.com.cn" target="_self">连接到新浪</a> 在本窗口打开
<a href="http://www.sina.com.cn" target="_blank">连接到新浪</a> 在弹出窗口打开
关于request表示的路径:
http://localhost:8080/project_name/admin/add.do
request.getRequestURI() ——〉/project_name/admin.do
request.getRequestURL() ——〉http://localhost:8080/project_name/admin/add.do
request.getServletPath()——〉/admin/add.do
request.getContextPath()——〉/project_name