David R. Patterson wrote:
Caldarale, Charles R wrote:
You webapp should be
generating links that Tomcat can process; if you want to keep these
separate from the app, treat the images as a separate, static-content
only webapp deployed under Tomcat.  Put an <imageAppName>.xml file in
conf/Catalina/[host] containing a <Context> element with a docBase
attribute pointing to the absolute path of the image directory.


Thanks for the comment. For the time being this application is for a single, local user. I'll investigate the <imageAppName>.xml approach. That is probably the missing link I was unable to find.
In simple words:

  1. You have your webapp deployed with /app context.
  2. You have images stored outside app's directory, i.e. in
     /home/images directory.
  3. You generate <img/> elements with src attribute pointing to
     /images, i.e. <img src="/images/image1.jpg"/> which refers to
     /home/images/image1.jpg file
  4. Create file images.xml in Tomcat's conf/Catalina/localhost
     directory (may vary depending on hostname used) with following
     content:
     <Context docBase="/home/images">
     </Context>


--
Mikolaj Rydzewski <[EMAIL PROTECTED]>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to