By Date: <-- -->
By Thread: <-- -->

[no subject]



 

I added a simple jsp as follows into the webapp dir.

 

<% (at)  page contentType="text/html" %>

<% (at)  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

 


------=_NextPart_000_0002_01C717EF.EBF34600--