Hi,

Our organization is trying out Jahia 5.0.3_r18957. I've been through
template development class, I am trying to understand why scriptlets
are being pushed instead of using struts or jstl taglibs..
Specifically, I think JSTL taglibs are an easy way to get our template
developers on board with this product and not to have them write
scriptlets everywhere.

I ran into a problem with the version of JSTL that Jahia is using.
For some reason, Jahia is using an ancient version (1.0).
The problem seems to be in the expressions.

For example, it seems like you should be able to do this (assuming
jData has already been defined):

<c:set var="editLink"><%=jData.gui().drawEditModeLink()%></c:set>

then later in the same page, just do this:

<a href="${editLink}">mylink</>

This would ouput that string value in the editLink expression.
This is not working with JSTL 1.0.

Instead, you have to do this:

<a href="<c:out value="${editLink}" />">mylink</>

You might as well use scriptlets if you are going to embed a tag
inside another tag.
This will take some more research. I may be missing something simple.

But, it appears that JSTL 1.0 (from my early tests) do not support the
expressions we've come to love in later versions?

Can anyone confirm or deny my suspicions. And any information on
experience with template development would certainly be welcome.

Regards,
Kevin Hutson
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to