tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Hencin" <michael.hen...@edm-concepts.com>
Subject EL not evaluatin in TC 5.5
Date Tue, 05 Dec 2006 04:02:41 GMT
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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message