You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian Adams <ba...@AEM-TX.com> on 2001/12/05 21:33:58 UTC

RE: images won't load with tomcat4.0.1 and apache 1.3 using WebAp p_Mo dule

Typo: should be this : The only way is if I use img="http://.../image.gif" 

-----Original Message-----
From: Brian Adams [mailto:badams@AEM-TX.com]
Sent: Wednesday, December 05, 2001 2:33 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: images won't load with tomcat4.0.1 and apache 1.3 using
WebApp_Mo dule


Hi, I walked through a basic setup of apache and tomcat 4.0
now that I have tomcat responding to Apache via warp I can't get any of my
jsp pages to load images....
The only way is if I use img="http://.../image.if"
Please tell me a way to do this better than that!
standard httpd.conf with:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
.
.
.
WebAppConnection conn warp localhost:9009
WebAppDeploy bbb conn /bbb







--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: images won't load with tomcat4.0.1 and apache 1.3 using WebApp_Mo dule

Posted by Mark <ma...@bellsouth.net>.
I recently had the same problem.  Thanks to the help of someone else on the
Tomcat mailing list, I resolved it by prepending the context path to the
images in the JSP, eg:

    <img src='<%=request.getContextPath()%>/myimages/image.gif'>

In my case I have a directory of images as ../webapps/myapp/myimages

Hope this fixes your problem...


At 02:33 PM 12/5/2001 -0600, you wrote:
>Typo: should be this : The only way is if I use img="http://.../image.gif" 
>
>-----Original Message-----
>From: Brian Adams [mailto:badams@AEM-TX.com]
>Sent: Wednesday, December 05, 2001 2:33 PM
>To: 'tomcat-user@jakarta.apache.org'
>Subject: images won't load with tomcat4.0.1 and apache 1.3 using
>WebApp_Mo dule
>
>
>Hi, I walked through a basic setup of apache and tomcat 4.0
>now that I have tomcat responding to Apache via warp I can't get any of my
>jsp pages to load images....
>The only way is if I use img="http://.../image.if"
>Please tell me a way to do this better than that!
>standard httpd.conf with:
>LoadModule webapp_module modules/mod_webapp.so
>AddModule mod_webapp.c
>.
>.
>.
>WebAppConnection conn warp localhost:9009
>WebAppDeploy bbb conn /bbb
>
>
>
>
>
>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>