Hi,

On Tue, Aug 4, 2009 at 9:55 PM, Douglas José<[email protected]> wrote:
> I noticed Apache Felix has a commons-jstl bundle. I installed this bundle in
> my sling (crx-quickstart) container, but I still can't use JSTL with my JSP
> pages. Is there something else I should install? I noticed the bundle
> doesn't contains any tld file....

I don't think that commons-jstl bundle is meant to provide everything
needed to run JSTL, that would be a question for the Felix users list.

What works for me is to install the two bundles found below:

http://www.osgi.org/Repository/HomePage?cmd=inspect&id=com.springsource.org.apache.taglibs.standard/1.1.2

http://www.osgi.org/Repository/HomePage?cmd=inspect&id=com.springsource.javax.servlet.jsp.jstl/1.1.2

Which allow the following script to work:

<%...@page session="false"%>
<%...@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>
<%...@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<sling:defineObjects/>

<h1>JSP rendering result</h1>
<p>
    Sling resource access:<%=
resource.adaptTo(javax.jcr.Node.class).getProperty("text").getValue().getString()
%>
</p>
<p>
    JSTL: <c:out value="Hello, JSTL world"/>!
</p>

HTH,
-Bertrand

Reply via email to