I wrote a web app that contains, among others, a JSP page that offers files
for download:

The files are somewhere in the filesystem (e.g. c:/files or /files)

Upon calling the JSP, its code reads the directory of the above dir and
presents each file in it as link.

Everything seems to work except I seem to have a mapping problem:

Let's say I call the web app through http://localhost:8080/myapp
The links presented in it don't say "/files/file1.pdf" but rather
"localhost:8080/file1.pdf", thus the download fails because the link points
to the wrong location.

How can I fix that?

Thanks

matt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to