hello all

after stumbling over federico's jsp-code once again, i figured out now, that:

1. federico is right with the code ;-)

2. in the magnolia BUNDLED webapp 4.5.2 the module 
magnolia-templating-jsp-4.5.2.jar IS included

3. in the magnolia  EMPTY webapp 4.5.2 the module 
magnolia-templating-jsp-4.5.2.jar IS NOT included, but you can download it here:

http://nexus.magnolia-cms.com/service/local/repositories/magnolia.public.releases/content/info/magnolia/magnolia-templating-jsp/4.5.2/magnolia-templating-jsp-4.5.2.jar

and federico's code works fine in an empty webapp of magnolia as well.

cheers
tobias



Am 11.05.2012 um 10:58 schrieb federico grilli (via Magnolia Forums):

> Hi Erando,
> 
> I think this might help you 
> http://documentation.magnolia-cms.com/reference/tag-libraries.html
> 
> as to the examples
> For ftl
> [code]
> [#if content.image?has_content]
>        Image: <img src="${cmsfn.link(content.image)}" />
>    [#else]
>        Image: No image uploaded yet.
>    [/#if]
> [/code]
> 
> For jsp
> [code]<c:choose>
>    <c:when test="${not empty content.image}">
>      Image: <img src="${cmsfn:link(content.image)}" />
>    </c:when>
>    <c:otherwise>
>      Image: No image uploaded yet.
>    </c:otherwise>
>  </c:choose>[/code]
> 
> HTH,
> 
> Federico
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=2b969df8-d962-45e4-a2fd-ebae14ba2fa7
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to