I am trying to create a link to a file in my webpage. The anchors href for the
link is "file:///C:/Users/OEM/Desktop/testa.txt". When I run my webpage from
file I can click the link
(file:///C:/Users/OEM/Documents/NetBeansProjects/WebApp/web/main.htm). However
when I run my webpage using Apache Server and Tomcat I cannot click the link
(http://localhost:8080/WebApp/main.htm). What I am trying to achieve is to be
able to create a link to a file located anywhere on the server. Since I am
using localhost, I would like to point to this file
(file:///C:/Users/OEM/Desktop/testa.txt). How do I do this? Does the file have
to be relative to Apache Server?
Thanks