Hi, If you are using JSTL1.1.x the correct uri is "http://java.sun.com/jsp/jstl/core". In JSTL1.1 the uri is changed respected to JSTL1.0.
I don't know why the first jsp is correct. May be, it is due to the fact the core_rt is not changed in JSTL1.1 and you are using Tomcat5.x version. BR /Amleto > -----Messaggio originale----- > Da: Pitre, Russell [mailto:[EMAIL PROTECTED] > Inviato: martedì 9 agosto 2005 16.29 > A: Tomcat Users List > Oggetto: JSTL Question > > > Hello All- > > I'm running Tomcat 5.0.24 and using the jstl libs from apache. > > I have two versions of a jsp below. The difference between > the two is the taglib declaration. The top one works and the > bottom one doesn't. Can someone enlighten me as to why this > is? It seems like the bottom one does not handle the > expression language. > > ================ > WORKS > ================ > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> <jsp:useBean id="address" scope="request" > class="com.shawmut.model.Address"/> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN"> <html> <body> > This is my JSP page. <br> > > <c:forEach var="i" begin="1" end="10" step="1"> > <c:out value="${i}" /> > </c:forEach> > </body> > </html> > > =========== > DOES NOT WORK > =========== > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> > <jsp:useBean id="address" scope="request" > class="com.shawmut.model.Address"/> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN"> <html> <body> > This is my JSP page. <br> > > <c:forEach var="i" begin="1" end="10" step="1"> > <c:out value="${i}" /> > </c:forEach> > </body> > </html> > ============================ > I Received the following error: > > "According to TLD or attribute directive in tag file, > attribute value does not accept any expressions" > > > Thanks > Russ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.4/66 - Release > Date: 09/08/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.4/66 - Release Date: 09/08/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]