tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Webb, Ed" <Ed.W...@news.xtremeinformation.com>
Subject RE: out tag silently fails
Date Tue, 02 Mar 2004 22:44:56 GMT
There's no error because it is doing exactly what you've told it to &
outputting "${i}" 10 times. Try changing the taglib uri to
http://java.sun.com/jsp/jstl/core and making sure you have a JSTL 1.1
implementation.

There was a message to the list yesterday from Hans Bergsten ISTR explaining
the correct combination of container, JSTL, web.xml and taglib URIs to get
everything working right.

Ed!

-----Original Message-----
From: Thomas McDonald [mailto:tomandlis@yahoo.com]
Sent: 02 March 2004 22:31
To: taglibs-user@jakarta.apache.org
Subject: c:out tag silently fails


How come this tag is outputing nothing, i.e., it
doesn't render the value of 'i'.  Is this an jstl
expression language bug?  

I can't get an error to troubleshoot!  Obviously the
tags are working, otherwise it wouldn't have looped,
right?  


code:

<%@ taglib uri="http://java.sun.com/jstl/core"
prefix="c"%>
<html>
<body>
<br>time: <%=new java.util.Date() %>
<br>
<c:forEach var="i" begin="1" end="10" step="1">
	<c:out value="${i}" />
	<br />
</c:forEach>
</body>
</html>



output:

time: Tue Mar 02 17:11:53 EST 2004 
${i} 
${i} 
${i} 
${i} 
${i} 
${i} 
${i} 
${i} 
${i} 
${i} 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

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