billy thompson

Greenhorn
+ Follow
since Jan 06, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by billy thompson

What would be the best/easiest way to provide a simple file download JSP page for files located in a directory external to my servlet webapp. So far i have been unable to setup Apache Tomcat to include desired directories with HTTP service. Apparently the easiest way is to use sendRedirect() with servlets but i can't use it unless i have files included with Tomcat so now i am looking for a workaround.
13 years ago
JSP
I am trying to setup tomcat with directory listing of files enabled. Tomcat was installed through Eclipse. I have edited the server.xml file to include the new context path needed however http://localhost:8080/movies doesn't work (404). http://localhost:8080/movies/DB_Connect does work with it's other path though. What other settings could possibly cause this problem? The reason i need the directory available publicly is because i want to be able to have files downloaded from a servlet easily with sendRedirect()

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

<Context docBase="DB_Connect" path="/DB_Connect" reloadable="true" source="org.eclipse.jst.jee.server:DB_Connect"/>
<Context docBase="C:/Movies" path="/movies" reloadable="true"/>

</Host>
13 years ago