Q
Qu0ll
I have some files that reside on an application server (GlassFish) and I
would like to read them from within a servlet. How can I reference them?
Is it a matter of accessing the URL of the files? If so, how can it be done
in such a way that it won't matter which port the server is running on?
For example, perhaps something like:
file://localhost:8080/filename
but what happens if the server is deployed on port 80?
Perhaps it's done using the servlet context?
An example would be nice!
--
And loving it,
-Q
_________________________________________________
(e-mail address removed)
(Replace the "SixFour" with numbers to email me)
would like to read them from within a servlet. How can I reference them?
Is it a matter of accessing the URL of the files? If so, how can it be done
in such a way that it won't matter which port the server is running on?
For example, perhaps something like:
file://localhost:8080/filename
but what happens if the server is deployed on port 80?
Perhaps it's done using the servlet context?
An example would be nice!
--
And loving it,
-Q
_________________________________________________
(e-mail address removed)
(Replace the "SixFour" with numbers to email me)