Hi,
>Thus, cannot you suggest a better way to access file? Maybe by JNDI?
>As you cand understand, I don't have a good knowledge of JSP & Servlet
>specs.
Maybe my post wasn't clear enough (I was only typing about 5 messages at
the time concurrently ;)). getResource is good: you can use it and rely
on it. But don't look for the URLs it returns to be identical across
different server implementations.
Both the Class#getResource or the ServletContext#getResource are good,
as the FAQ suggests. You'll find that in fact for the latter, (most
versions of) Tomcat do return jndi:/localhost URLs.
Yoav
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail is intended only for the individual(s) to whom it is addressed, and may not be
saved, copied, printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]