Jason, Make sure your deployment descriptor (web.xml) is servlet 2.4 based, as follows:
<?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"> <!-- web-app specific content --> </web-app> For an explanation of why this should solve your problem, please see Appendix A of the JSTL spec (Compatibility and Migration). -- Pierre Jason Pincin wrote: > Greetings, > > I'm fairly new to JSP and the java paradigm in general, and am trying to get > my feet wet with some simple pages. I'm starting with tomcat-5.0.27 and > jakarta-taglibs-standard-1.1.2. I've followed the documentation at > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/processes.html on > putting together an initial application tree, I've put one page (index.jsp) > in ./web, I've put together build.xml, web.xml, and I've placed standard.jar > and jstl.jar from the taglibs package in my WEB-INF/lib dir. > > I'm pretty certain I've got the basic structure down, but could be wrong. > The problem I'm having is this: > >>From what I've read, Tomcat 5.x utilizes JSP 2.0 & JSTL 1.1. It's my > understanding that with JSTL 1.1, the taglib uri for JSTL Core change from > http://java.sun.com/jstl/core to http://java.sun.com/jsp/jstl/core. > > Here is my index.jsp: > > <%@ page contentType="text/html" %> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> > <html> > <head> > <title>First JSP Page Ever</title> > </head> > <body style="background-color: white; color: black;"> > <c:set var="test" value="hello" /> > > Following number <u>SHOULD</u> be six: > <c:out value="${1 + 2 + 3}" /> > <br/> > > Following <u>SHOULD</u> be 'hello': > <c:out value="${test}" /> > </body> > </html> > > I don't think you can get much simpler. However, with that page as it is, > the out put looks like this: > > Following number SHOULD be six: ${1 + 2 + 3} > Following SHOULD be 'hello': ${test} > > Now... If I change the taglib uri from http://java.sun.com/jsp/jstl/core to > http://java.sun.com/jstl/core, the output looks like this: > > Following number SHOULD be six: 6 > Following SHOULD be 'hello': hello > > This has me perplexed. Was wondering if anyone out there could shed some > light on this behavior for me? Thanks in advance for your time and > thoughts. > > Jason Pincin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]