You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Rory Douglas <ro...@oracle.com> on 2008/12/15 23:06:41 UTC
Using JSTL core taglib
I feel I'm missing something really simple here - how do I use the JSTL
core taglib with JSP scripts in Sling? Other posters to this list
appear to be using it succesfully, but whenever I add
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
to my JSPs they fail with: "The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
or the jar files deployed with this application (500)". This is using
the default launchpad/webapp project with embedded Jetty.
The scripting/jsp project includes tag plugins for all the JSTL core
library tags - do I still need to add jstl.jar/standard.jar to the
webapp dependencies?
Regards,
Rory
Re: Using JSTL core taglib
Posted by Carsten Ziegeler <cz...@apache.org>.
Felix Meschberger wrote:
> Hi,
>
> Bertrand Delacretaz schrieb:
>> On Tue, Dec 16, 2008 at 8:21 AM, Felix Meschberger <fm...@gmail.com> wrote:
>>> ...The JSTL is not included in the scripting/jsp project and must be
>>> deployed separately.
>>>
>>> But it would probably make sense to include it with out
>>> scripting/jsp-taglib bundle....
>> Or as a specific script/jsp-jstl bundle? That would make it easier for
>> people to use a specific version of JSTL if needed, while keeping our
>> jsp-taglib.
>
> Yeah, makes sense.
>
Yes, and we have https://issues.apache.org/jira/browse/SLING-156 already
for this :)
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: Using JSTL core taglib
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
Bertrand Delacretaz schrieb:
> On Tue, Dec 16, 2008 at 8:21 AM, Felix Meschberger <fm...@gmail.com> wrote:
>> ...The JSTL is not included in the scripting/jsp project and must be
>> deployed separately.
>>
>> But it would probably make sense to include it with out
>> scripting/jsp-taglib bundle....
>
> Or as a specific script/jsp-jstl bundle? That would make it easier for
> people to use a specific version of JSTL if needed, while keeping our
> jsp-taglib.
Yeah, makes sense.
Regards
Felix
Re: Using JSTL core taglib
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Tue, Dec 16, 2008 at 8:21 AM, Felix Meschberger <fm...@gmail.com> wrote:
> ...The JSTL is not included in the scripting/jsp project and must be
> deployed separately.
>
> But it would probably make sense to include it with out
> scripting/jsp-taglib bundle....
Or as a specific script/jsp-jstl bundle? That would make it easier for
people to use a specific version of JSTL if needed, while keeping our
jsp-taglib.
-Bertrand
Re: Using JSTL core taglib
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Rory,
Rory Douglas schrieb:
> I feel I'm missing something really simple here - how do I use the JSTL
> core taglib with JSP scripts in Sling? Other posters to this list
> appear to be using it succesfully, but whenever I add
>
> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>
> to my JSPs they fail with: "The absolute uri:
> http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
> or the jar files deployed with this application (500)". This is using
> the default launchpad/webapp project with embedded Jetty.
>
> The scripting/jsp project includes tag plugins for all the JSTL core
> library tags - do I still need to add jstl.jar/standard.jar to the
> webapp dependencies?
The JSTL is not included in the scripting/jsp project and must be
deployed separately.
But it would probably make sense to include it with out
scripting/jsp-taglib bundle.
WDYT ?
Regards
Felix