Q
Qu0ll
I am hoping someone can explain this to me. I have a very simple WAR file
which I created in NetBeans. In the "Web Pages" section I have a file named
index.jsp in the root of that section. Let's say the project and WAR name
is "test-war", when I type in http://localhost:8080/test-war/ I get the
index.jsp page displayed. However, when I type in
http://localhost:8080/test-war/index.jsp I get a 404 error and this line
appears in the GlassFish logs:
PWC6117: File
"D:\Java\apps\glassfish-v2ur2\domains\domain1\docroot\test-war\index.jsp"
not found
How is it that it can find the index.jsp when I don't give it a name but
can't find it when I do? I am trying to work out how to do simple file
serving from a WAR running on GlassFish but can't work out how to specify
the file paths and names in the browser. Ultimately I want to be able to
type in http://localhost:8080/test-war/file1.pdf for example and have that
PDF file downloaded.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]
which I created in NetBeans. In the "Web Pages" section I have a file named
index.jsp in the root of that section. Let's say the project and WAR name
is "test-war", when I type in http://localhost:8080/test-war/ I get the
index.jsp page displayed. However, when I type in
http://localhost:8080/test-war/index.jsp I get a 404 error and this line
appears in the GlassFish logs:
PWC6117: File
"D:\Java\apps\glassfish-v2ur2\domains\domain1\docroot\test-war\index.jsp"
not found
How is it that it can find the index.jsp when I don't give it a name but
can't find it when I do? I am trying to work out how to do simple file
serving from a WAR running on GlassFish but can't work out how to specify
the file paths and names in the browser. Ultimately I want to be able to
type in http://localhost:8080/test-war/file1.pdf for example and have that
PDF file downloaded.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]