Hi,
This may be related but I had similar problems...
We're running Jahia on Tomcat 5.0 (JSP 2.0 container).
I wanted to use the <c:import> tag with the url attribute containering
some expression... eg <c:import url="{myURL}"/>. Unfortunatly tomcat had
detected the web.xml for Jahia as a JSP 1.3 web.xml and had gone into
backwards compatability mode where expression language was ignored. In
addition the c:import provided by JSTL 1.0 doesnt allow scriptlet or
expression language. I upgraded to JSTL 1.1 where expression language is
allowed in the tag's attributes as the tag expects the container to
handle it. I also added <%@ page ELIgnored="false %> which causes the
container to evalute expression language - somethign which the jsp 2.0
container can inheritently do, but doesnt because its running in
backwards compatability mode due to the older web.xml file.
This allowed me to use expression language in the jsp pages WITH JSTL tags.
Richard.
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="${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
>
>
>
--
Richard Gate
Developer
Souk Digital
A Souk Group Company.
London Office
1st Floor,
Shaftesbury House,
151 Shaftesbury Avenue,
London WC2H 8AL
Tel: +44 (0) 20 7420 7880
Nottingham Office
High Pavement Business Centre,
3-5 High Pavement,
The Lace Market,
Nottingham.
NG1 1HF
Tel: +44 (0) 115 959 6455
Fax: +44 (0) 115 959 6456
www.soukdigital.com
Confidentiality: This e-mail and its attachments are intended for the above
named only and may be confidential. If they have come to you in error you must
take no action based on them, nor must you copy or show them to anyone; please
reply to this e-mail and highlight the error.
Security Warning: Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a 100% secure communications medium. We
advise that you understand and observe this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list