Hallo,
<BR>
mir ist nicht ganz klar, auf was man mit
javax.servlet.ServletContext#getResource
zugreifen kann.
<BR>
Ich dachte eigentlich immer, man könnte auf alle
Files im War File zugreifen.
<BR>
Nun habe ich in der Servlet Spec 2.3 Kapitel "SRV.3.5 Resources" folgendes gelesen.
<BR>
<I>The getResource and getResourceAsStream methods take a String with a
leading “/” as argument which gives the path of the resource relative to the root of
the context. <B>This hierarchy of documents may exist in the server’s file system, in a
web application archive file, on a remote server, or at some other location.</B></I>
<BR>
Ich verstehe den fett markierten Satz nicht.
Heisst das nun, dass ich auch Files ausserhalb meines
WARs zugreifen könnte oder heisst das einfach nur
das mein WAR file auch wo anders sein kann.
<BR>
Danke und Gruss<BR>
Karin
<BR>
mir ist nicht ganz klar, auf was man mit
javax.servlet.ServletContext#getResource
zugreifen kann.
<BR>
Ich dachte eigentlich immer, man könnte auf alle
Files im War File zugreifen.
<BR>
Nun habe ich in der Servlet Spec 2.3 Kapitel "SRV.3.5 Resources" folgendes gelesen.
<BR>
<I>The getResource and getResourceAsStream methods take a String with a
leading “/” as argument which gives the path of the resource relative to the root of
the context. <B>This hierarchy of documents may exist in the server’s file system, in a
web application archive file, on a remote server, or at some other location.</B></I>
<BR>
Ich verstehe den fett markierten Satz nicht.
Heisst das nun, dass ich auch Files ausserhalb meines
WARs zugreifen könnte oder heisst das einfach nur
das mein WAR file auch wo anders sein kann.
<BR>
Danke und Gruss<BR>
Karin
Comment