tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Tim" <>
Subject RE: taglib standard 1.0 in Tomcat
Date Fri, 27 Feb 2004 19:41:30 GMT
When you said you have a 2.4 web.xml
It has:
<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app xmlns=""
	// your web-app contents here

I only ask because I don't see a listing for you web.xml and that was what
caused my very similar problem before.


-----Original Message-----
From: Hassan Schroeder [] 
Sent: Friday, February 27, 2004 1:41 PM
To: Tag Libraries Users List
Subject: Re: taglib standard 1.0 in Tomcat

Hans Bergsten wrote:

> Unless there's a copy of this example in another O'Reilly book, this
> looks like an example from my book named "JavaServer Pages, 3rd
> Edition", 

Unforunately I don't have your book, but I thought I'd try this out;
using Tomcat 5.0.19 and Java 1.4.1, an embedded EL expression like:

<c:set var="whatever" value="WHATEVER"/>
<p>OK, ${whatever}</p>

:: produces

but the cited example (with added catch tag):

<c:catch var="oops">
<c:set var="sessionCounter" scope="session" value="${sessionCounter + 1}"/>
<c:set var="applCounter" scope="application" value="${applCounter + 1}"/>
<c:if test="${not empty oops}">
	<c:out value="${oops}"/>

:: gives me the output

javax.servlet.jsp.el.ELException: An exception occured trying to
convert String "${sessionCounter + 1}" to type "java.lang.Double"

I do have a 2.4 web.xml, JSTL 1.1 jars (and presumably the first
trivial example wouldn't work if all that wasn't right).

Any thoughts? Does your original full example from the book define
sessionCounter and applCounter somewhere else prior to use?

Hassan Schroeder -----------------------------
Webtuitive Design ===  (+1) 408-938-0567   ===

                           dream.  code.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message