.
Think of the WAR as being its own virtual filesystem completely distinct from the OS filesystem of the server that the webapp is deployed to
Dave Tolls wrote:I know how both resource things work (and getResourceAsStream on class uses '/' not '.').
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
Dave Tolls wrote:I know how both resource things work (and getResourceAsStream on class uses '/' not '.').
You are correct, but the CLASSLOADERs do. Classpath-retrieved resources use package (dot) path format.
The J2EE getResource methods don't use the classloaders. They operate on resource paths, which as I said, are a "file system" rooted at the WAR root. The stock classpath for a WAR is based on WEB-INF/lib JARs and WEB-INF/classes. So not only is the path notation different, but the path roots are different.
Isaac Ferguson wrote:The jsp displays a text just hardcoded it is not relevant. It issue is about the path, the logs doesnt show any error.
I tried forward with the same result.
I have detected the line which provokes the white line.
prop.load(inputStream);
I think it is still a problem with the path.
Dave Tolls wrote:
Not sure what you are talking about re: "(c)lasspath-retrieved resources" as I'm solely talking about the methods getResource and getResourceAsStream.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
Let's go back to the original question. The intent was to retrieve a property resource in order to obtain a property value.
(snip bits for brevity)
Isaac Ferguson wrote:
I tried forward with the same result.
I have detected the line which provokes the white line.
prop.load(inputStream);
I think it is still a problem with the path.
Don't get me started about those stupid light bulbs. |