a href is not working

Hi all,

From my web application i generate some HTML files which are stored in the following path Apache Software Foundation\Tomcat 5.5\downloaded

from my jsp page i try to access to this files like this:

http://localhost:8080/downloaded/nombrefile.html

but it doesnt work,

can you help me?

Thanks!

[342 byte] By [tlloretia] at [2007-11-26 16:52:30]
# 1

Well where is your web application situated?

The standard place is in the [TOMCAT]/webapps directory.

There are two possibilities:

The default webapp would be ROOT - and that is probably where http://localhost:8080/downloaded/nombrefile.html would go looking for the file in [TOMCAT]/webapps/ROOT/downloaded/nombrefile.html

If you have a webapp called downloaded, it would look in

[TOMCAT]/webapps/downloaded/nombrefile.html

You cannot directly access files outside of the webapp. That would be a security hole. One approach is to write a servlet which retrieves a file from disk outside of the webapp so that you can access that file from the webapp. It also allows you with code to control who can/can't access that file.

Cheers,

evnafets

evnafetsa at 2007-7-8 23:20:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...