KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: rula on June 05, 2008, 05:20:46 pm

Title: jstl-tags
Post by: rula on June 05, 2008, 05:20:46 pm
Hi KonaKarts,

I have a problem with jstl. The tags don't work - expressions not evaluated

I use:
jstl.jar1.1.2
standard1.1.2
in konakart/lib

c.tdl
in konakart/WEB-INF

<taglib>
    <taglib-uri>/tags/c</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
in konakart/WEB-INF/web.xm

<%@ taglib uri="/tags/c" prefix="c" %>
<c:set var="test" value="rula"/>
<c:out value="${test}"/>
in konakart/WEB-INF/jsp/test.jsp

and I get
${test}
in the view

Where is the problem, please help!?

regards, rula
Title: Re: jstl-tags
Post by: rula on June 05, 2008, 09:52:38 pm
Hi KonaKarts,

solution from

Developer Forums
JavaServer Pages (JSP) and JSTL - JSTL variable access problem - HELP

To retain backwards compatibility with web applications. EL is disabled in certain cases. JSP spec section 3.3.2
Try putting this web directive on your page:
<%@ page isELIgnored="false"%>

Check your web.xml file - if the DTD is less than version 2.4 and you haven't specified EL handling in web.xml or the page directive, EL is disabled by default.
Your web.xml file should start with this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

regards, rula