请问JSP里这个<a href=???>怎么设# Java - 爪哇娇娃
w*y
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 woomy 所发表 】
我现在用jsp做网页, 用tomcat 做jsp server
我知道硬盘上一个txt文件的绝对路径, 譬如path=/home/woomy/text.txt
我想做个link可以指向这个文件,用户click这个link可以打开这个文件,
可是我试了一下link 不行
我把鼠标放在link上的时候状态栏显示的是
http://hostname:port/home/woomy/test.txt
我知道tomcat是到他的webapps/root下面找文件, 请问这个href该怎么设呢?
多谢多谢!
?
【 原文由 woomy 所发表 】
我现在用jsp做网页, 用tomcat 做jsp server
我知道硬盘上一个txt文件的绝对路径, 譬如path=/home/woomy/text.txt
我想做个link可以指向这个文件,用户click这个link可以打开这个文件,
可是我试了一下link 不行
我把鼠标放在link上的时候状态栏显示的是
http://hostname:port/home/woomy/test.txt
我知道tomcat是到他的webapps/root下面找文件, 请问这个href该怎么设呢?
多谢多谢!
?