|
Hi,
You have to use an absolute path
to the file
not an url.
Maybe You are thinking that this
way the servlet
will be portable. Instead of your aproach you can
have an init parameter that describes the full
path minus the filename
and i thing you can retrieve the init parameter
with:
String
pathtofile=getServletConfig().getInitParameter("filepath");
If the file you are trying to open is
not in the same machine than
you have to make a connection to the server and
retrieve the file but i think this will be
to slow for a servlet ( i mean the request from the
client times out).
|
- How to open a file using Web Address ? Hartono (Telebot)
- Re: How to open a file using Web Address ? Andras Balogh
- Re: How to open a file using Web Address ? Craig R. McClanahan
- Re: How to open a file using Web Address ? Ivan Hajicek
- Re: How to open a file using Web Address ? Wuwer, Jacek M.
- Re: How to open a file using Web Address ? Yong Hu
- Re: How to open a file using Web Address ? Craig R. McClanahan
- Any good ideas for a wizard type process? Avidan Ross
- Re: Any good ideas for a wizard type ... Andy Bailey
- Re: How to open a file using Web Address ? Shawn McKisson
