[opencms-dev] image in opencms

Claus Priisholm cpr at codedroids.com
Wed Mar 30 09:42:51 CEST 2005


generally you should wrap references to images and other resources in 
the virtual filesystem with:

cms.link("/foo/bar.gif")

or if you prefer taglib

<cms:link>/foo/bar.gif</cms:link>

this will adjust the url to reflect the different workings of the 
offline/online/export modes that OpenCms supports.

On 30/3-2005, at 4.48, Phan Dang Dinh wrote:

> Yes, I sure
> --- Daniel Rhoden <drhoden at iiwinc.com> wrote:
>> Make sure that the image has been published and that
>> you viewed that
>> page offline at least one time after you publish.
>>
>> --Daniel Rhoden
>>
>> Phan Dang Dinh wrote:
>>
>>> Hi all
>>> I am using opencms 5.0
>>> I create a folder test under root
>>> In test folder i have a images folder with some
>> images
>>>
>>> I create a jsp page under test folder like this:
>>> <img src="images/mypic.gif">
>>>
>>> I view this page at offline,
>>> http://localhost:8080/test/test.jsp it's OK
>>>
>>>
>>> But when I publish and view it online, I can not
>> see
>>> the picture.
>>> I view properties of this pictures and see that:
>>> http://localhost:8080/images/mypic.gif
>>>
>>> how can i resolve this proplem
>>>
>>> Thanks
>>> Dinh
>>>
>>> Send instant messages to your online friends
>> http://uk.messenger.yahoo.com
>>>
>>>
>>> _______________________________________________
>>> This mail is send to you from the opencms-dev
>> mailing list
>>> To change your list options, or to unsubscribe from
>> the list, please visit
>>
>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> This mail is send to you from the opencms-dev
>> mailing list
>> To change your list options, or to unsubscribe from
>> the list, please visit
>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>
> Send instant messages to your online friends 
> http://uk.messenger.yahoo.com
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
OpenCms links & javadoc API's: 
http://www.codedroids.com/community/opencms
--
Claus Priisholm
+45 48 22 46 46
cpr <you know what> codedroids.com
http://www.codedroids.com




More information about the opencms-dev mailing list