I have a servlet that uploads a file , modifies it and sends it to the browser. Is it possible to have the file as part of the .war file and how do I access it using FileInputStream - I can't figure out what path to use - the FileInputStream can never find the path specified and I've tried a bunch. All the examples I've seen have the webapp exploded and not warred up.
posted 13 years ago
Have you tried getResourceAsStream? That works for me.