On Thu, Dec 30, 2021 at 10:57 AM Christopher Schultz <ch...@christopherschultz.net> wrote: > > You mean like ServletContext.getRealPath?
Honestly I'm not sure how I feel about getRealPath. On the one hand, I don't think it's reasonable to just pretend that applications only exist in the vacuum of space. There are many practical reasons why an application might want to interact with the filesystem but without requiring absolute paths. Just because there might not be a file system is a weak excuse to not properly account for one. Being able to update a file of properties for example and have the application see that the file is updated without reloading the webapp (maybe even if the app is packaged as a war) is very useful. On the other hand I don't think I would want another 10 classes just to create some kind of ancillary webapp storage abstraction. Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org