J
Java Job
I have a .war file that is deployed across many different types of
J2EE containers. The .war file contains my JSP code, as well as data
files that reside in [myapp]/lib (they can reside in any directory
such as [myapp]/WEB-INF, etc.)
I need to access the contents of the files inside the JSP using
RandomAccessFile... this means I can NOT use any of the
getResourceAsStream methods to access the file contents.
Ideally I would be able to find out from within my JSP where it is
that the web application is installed and access that directory from
within the .JSP. However, I can not find a reliable way to determine
which directory I am running in and also access a file within the
directory.
Any ideas?
Thanks,
Cliff.
J2EE containers. The .war file contains my JSP code, as well as data
files that reside in [myapp]/lib (they can reside in any directory
such as [myapp]/WEB-INF, etc.)
I need to access the contents of the files inside the JSP using
RandomAccessFile... this means I can NOT use any of the
getResourceAsStream methods to access the file contents.
Ideally I would be able to find out from within my JSP where it is
that the web application is installed and access that directory from
within the .JSP. However, I can not find a reliable way to determine
which directory I am running in and also access a file within the
directory.
Any ideas?
Thanks,
Cliff.