Hi Kevin,

I am currently updating the Jahia Template Developer Guide 5.0, which will be out soon.

Here is an excerpt:

_expression_ Language and JSTL tags

For now we still have to stay compatible with the Java Servlet 2.3 standard due to customers running Jahia on Websphere 5, but with Jahia 5.1 we are going to support at least the Java Servlet 2.4, Java Server Pages 2.0 and the corresponding Java Server Pages Standard Tag Library 1.1 standards.

With using the _expression_ language and the JSTL tags, some more Jahia tags will become obsolete and you will be able to write even more elegant and simple looking JSPs.

If you are using Tomcat 5, you could already use these standards before Jahia 5.1, by migrating the web.xml to the 2.4 standard, and exchanging the lib\jstl-1.0.2.jar and lib\standard-1.0.4.jar and also the etc\taglibs\jstl\*.tld with the newer versions.


In the new Template Developer Guide scriptlets are not mentioned as much as before. Also the new corporate_portal_templates_v3 are currently being developed with the goal to avoid scriptlets.

The points you are mentioning are indeed because of the old supported standards, but as mentioned in the last sentence of the excerpt, it is quite easy to upgrade to newer standards if you would like to use them in your templates development. The next Jahia release should support them out-of-the-box.

Greetings,
Benjamin

On 25.10.2007 21:47, Kevin wrote:
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="">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=""${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

  

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

Reply via email to