> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Yes, you are correct that I could create the directory at > runtime, which is needed for downloaded files, but the > problem is our system is property driven, and if someone > creates a directory with the wrong property, then we get tmp > folders all over the place and create quite a mess. So by > creating the directory ahead of time it ensures an error if > incorrect setup. > > Which just made me think, that I can include a servlet with a > start-up of '1' that creates the needed directory. That way I > just add another servlet to the mix and I think that will > resolve the issue.
Instead of a Servlet, consider a ContextListener. You configure it in web.xml, and the container runs the various methods when the context is started and stopped. Thanks to Dominique for pointing out that what I spent an hour discovering has already been fixed: http://issues.apache.org/bugzilla/show_bug.cgi?id=30365 ;) If I'm reading that right, it's fixed in 1.6.3 so it should be in the next release. At that point, then you can create the directory at build time (anywhere, you can delete it after building the .war file,) include it, and it should be in the war file as an empty directory. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
