M
Manish Hatwalne
The documentation of -
public java.lang.String getRealPath(java.lang.String path)
of ServletContext says -
<quote>
The real path returned will be in a form appropriate to the computer and
operating system on which the servlet container is running, including the
proper path separators. This method returns null if the servlet container
cannot translate the virtual path to a real path for any reason (such as
when the content is being made available from a .war archive).
</quote>
What would be the workaround in this case? I need to deploy my application
as a war file and I also need to get the real path of a web document.
I can store the path in the web.xml file, but want to avaoid it as long as
it is possible. Is there any other way of doing this?
TIA,
- Manish
public java.lang.String getRealPath(java.lang.String path)
of ServletContext says -
<quote>
The real path returned will be in a form appropriate to the computer and
operating system on which the servlet container is running, including the
proper path separators. This method returns null if the servlet container
cannot translate the virtual path to a real path for any reason (such as
when the content is being made available from a .war archive).
</quote>
What would be the workaround in this case? I need to deploy my application
as a war file and I also need to get the real path of a web document.
I can store the path in the web.xml file, but want to avaoid it as long as
it is possible. Is there any other way of doing this?
TIA,
- Manish