2015-02-10 17:14 GMT+03:00 Sasikumar Muralikrishnan
<sasiku...@pointelsolutions.com>:
> Hi André Warnie,
>
> Great thanks for your response.
>
> But here, I am not writing anything inside the web application.
>
> 1. I have a flat file in the web application and it has some configurations
> details, which I use for the project.
> 2. Therefore, we are trying to read the configuration detail from that file.

1. Do you really need a file?
ServletContext.getResourceAsStream() provides an InputStream
ServletContext.getResource() provides an URL

Both work even if unpackWARs=false.

2. java.io.File  can perform path arithmetics regardless of
terminating '/' in parent path,

new File(parent, child)

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to