How to get the actual path of a file present in the Web content folder

I have a jasper file which is present inside the Web-Content folder of my project. I need to pass this file as an argument to the FileInputStream object. How can i give the actual path of the jasper file, since this project can be deployed anywhere else also.
[273 byte] By [Akshua] at [2007-11-27 6:32:35]
# 1
You may be able to use the getRealPath or getResource methods in ServletContext
LRMKa at 2007-7-12 17:58:07 > top of Java-index,Java Essentials,New To Java...