Thanks, Hassan,, that gives me a start. 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. > > Thanks > > Spencer > > > On Dec 18, 2007 10:50 AM, Spencer Tickner <[EMAIL PROTECTED]> wrote: > > Hi Hassan, > > > > Thanks for the response and sorry for the confusion. > > > > The Web-directory was badly named,, but I was refering to the > > {tomcat}\webapp\ directory. When I was refering to Servlet Folder it > > would be {tomcat}\webapp\ServletDir\ > > > > Thanks, > > > > Spencer > > > > > > > > On Dec 18, 2007 10:42 AM, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > On Dec 18, 2007 9:56 AM, Spencer Tickner <[EMAIL PROTECTED]> wrote: > > > > > > > I've set up a security servlet that will check permissions on various > > > > html, pdf, xml, etc, files. > > > > > > > 1) I started with the content files out of the Web directory all > > > > together and kept the mapping in an xml file and then served them > > > > using FileInputStream and writing them to the ServletOutputStream. > > > > This doesn't work because any internal refrences (<img>, <style>, > > > > etc.) are lost. > > > > > > "lost"? How so? > > > > > > > 2) My next attempt was to put them into the Servlet folder... > > > > > > I've no idea what you mean by "Web directory" or "Servlet folder"; > > > maybe you could describe more precisely how your webapp is > > > currently configured. > > > > > > -- > > > 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] > > > > > > > > >
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]