RobertCMyers
Programmer
We have a Servlet and a set of image files that we're installing as an EAR on WebSphere 4. Whenever one of the image files is added to an HTML page, it works just fine. WebSphere finds the correct file in the installed images directory under the EAR directory.
The problem is that the Servlet occasionally needs to check to see if one of the images is present BEFORE rendering the page. But the Servlet cannot figure out where the installed EAR directory is located. We've looked at the user.dir property, and it's ".../Application Server/bin/" or something similar. (When we manually copy the EAR's "images" subdirectory to the bin directory, everything works fine, but that's not a long-term solution. The IT department will hate us if installation includes a step: "Now, copy this directory to your WebSphere bin directory..."
We've dumped ALL System properties, and there's nothing pointing us to OUR EAR directory. Is there any way for the Servlet to ask "Where am I installed?"
Thanks!
Rob
The problem is that the Servlet occasionally needs to check to see if one of the images is present BEFORE rendering the page. But the Servlet cannot figure out where the installed EAR directory is located. We've looked at the user.dir property, and it's ".../Application Server/bin/" or something similar. (When we manually copy the EAR's "images" subdirectory to the bin directory, everything works fine, but that's not a long-term solution. The IT department will hate us if installation includes a step: "Now, copy this directory to your WebSphere bin directory..."
We've dumped ALL System properties, and there's nothing pointing us to OUR EAR directory. Is there any way for the Servlet to ask "Where am I installed?"
Thanks!
Rob