RE: RE: File retrieving

2004-10-08 Thread Shapira, Yoav

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]



Re: RE: File retrieving

2004-10-08 Thread Giuseppe Briotti
> Hi,
> There's no requirement that the URL you get back from the 
> getResource call be identical across implementations. Such a 
> requirement would be impossible to implement in a portable manner 
> anyways. What IS required, and what you can rely on, is that the 
> URL is resolvable to a resource within the JVM.
> 
> Yoav Shapira
> Millennium Research Informatics

Thank you Yoav.

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. 

TIA

G




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]