2009/3/26 Caldarale, Charles R <[email protected]>: >> From: Ward [mailto:[email protected]] >> Subject: Re: Deployment: do not delete specified folder >> >> Can you please tell/hint me how do I access file on >> server, not in webserver directory > > Static resources are normally handled by Tomcat's built-in DefaultServlet, > which does map URL paths to file system paths. There's nothing stopping you > from using your own servlet (likely just extending DefaultServlet) to handle > requests for /somedir/somefile and retrieving the file from some alternate > location. Okey, I think I get you point here, but I'm just somewhat stuck on the 'retrieving the file from some alternate location'... How exactly do I have to handle this? Read the desired file, and then write it to the outputstream of the response?
Ward --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
