Tim Ashman wrote:
I've got this problem and I'm not sure how to solve it. I'm hoping someone
can steer me the right way.
My problem is that I have my static files for the webapp located right off of
the webapps directory like this.
$tomcat/webapps/myapps
$tomcat/webapps/myapps/images
Now on my production server I use jk and apache and I was able to JkMount /
myapps/* ajp13 and this allowed by webapp to "see" the images directory and
the other static include files it works correctly.
BUT
on my development machine (I'm switching from a win98 to a linux)
Anyway I'm using Netbeans 3.6 and the builtin tomcat server that it comes with
(5.0.19) I setup my complier for external and netbeans places all the
classes in the correct way, I can compile the entire app.
But when I run tomcat I can run my app but the references to the images, my
include scripts.js, don't load.
Can someone help me with where in either tomcat's server.xml, web.xml or with
the apps web.xml that I place the correct config info so that tomcat allows
the app access to these directories.
It would be much easier to use, say, Struts HTML taglib, to render application
context path for you. <strutshtml:img page="/images/content-logon.png" /> will
work for any context path without any additional configuration you've mentioned
above needed.
--
Illya Kysil, software developer
Delphi/C/C++/C#/Java/Forth/Assembler
-------------------------------------------------------------------------
No trees were harmed in the generation of this e-mail.
A significant number of electrons were, however, severely inconvenienced.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]