Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Leon Hansen   on Sep 21 In Java Category.

  
Question Answered By: Volney Fischer   on Sep 21

I think this will help  you.

You have a web server, e.g. Tomcat (Your servlet
container). You have deployed your web application
into ${tomcat.server.dir}/webapps/MyWebApp
ok!
Your files  should be web accessible. It means you
should put them into a directory on the server in your
web application dir.
${tomcat.server.dir}/webapps/MyWebApp/MyFiles

Now you can give a link  to this file. Your web address
to these files is something like this:

/MyWebApp/MyFiles/filename.ext

Consider that when you act this way, one can access
these files directly using this address:
http://your.domain/MyWebApp/MyFiles/

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Help in java Or get search suggestion and latest updates.


Tagged: