On Dec 18, 2007 11:03 AM, Spencer Tickner <[EMAIL PROTECTED]> wrote: > The files are "lost", as I'm firing the servlet in the > {tomcat}\webapp\ServletDir\, that then reads a file "C:\somefile.htm" > that in it has reference to <img src="test.gif", and test resides in > C:\. somefile.htm is read and returned to the browser fine,, but the > browser can't find test.gif. Hope this clears up the confusion.
Then you need to use an absolute but context-relative path, e.g. src="${pageContext.request.contextPath}/images/test.gif" (JSTL example) and put that image in $CATALINA_HOME/webapps/{appname}/images/ HTH! -- Hassan Schroeder ------------------------ [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]