I usually put under WEB-INF/tld/ all the JSP tag library and under
WEB-INF/lib all the *.jar file... even jstl.jar & I never have had problem
Ciao
Roberto
Michael Hencin ha scritto:
I have tomcat 5.5, j2sdk1.4.2_11 on windows xp sp2
I have installed the BIRT viewer web app (from eclips.org) and wanted to
also add JSTL to the jsp pages. I download and installed the jstl.jar and
standard.jar into my webapp WEB-INF/lib. I put the c.tld and some other tld
files into the WEB-INF dir. My jsp does not seem to be evaluating the EL I
have another sample webapp, that I got the simple jsp from, and its
installed in the same TC5.5 and the same jsp evaluates fine.
>From what I have read about installing JSTL, I cannot see why the EL
expressions will not evaluate?
I added a simple jsp as follows into the webapp dir.
<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>JSP is Easy</title>
</head>
<body bgcolor="white">
<h1>JSP is as easy as ...</h1>
<%-- Calculate the sum of 1 + 2 + 3 dynamically --%>
1 + 2 + 3 = <c:out value="${1 + 2 + 3}" />
</body>
</html>
The result when I load this jsp is
<html>
<head>
<title>JSP is Easy</title>
</head>
<body bgcolor="white">
<h1>JSP is as easy as ...</h1>
1 + 2 + 3 = ${1 + 2 + 3}
</body>
</html>
My web.xml entries for the tag-lib are as follows;
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
<taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>
Michael Hencin
Enginuity Development
815-505-5028
--
IT Manager
MONTEFIORE
----------
Centralino: +41916104455
Diretto : +41916104464
Mobile : +41797000139
www.montefiore.ch