On Tue, Jun 08, 2004 at 10:15:25AM -0600, Goyal, Ritu (Ritu) wrote: : We did manage to get to one level, but then are images don't load at : all. The images directory is under C:\jakarta-tomcat-4.1.27\webapps\app. : : To access an image we do the following in our velocity templates. : : <img src="images/logo-smaller.gif" width="123" height="44">
Here's the catch: a servlet has no (predictable) "relative path", so you can't use a relative path to the images. I don't know whether Velocity and JSTL mix, but there's a JSTL tag (I forget which) that returns a context-relative URI -- i.e. for links and images. You could check that out. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
