Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 76076 invoked from network); 8 Aug 2006 11:51:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 11:51:52 -0000 Received: (qmail 89443 invoked by uid 500); 8 Aug 2006 11:51:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89418 invoked by uid 500); 8 Aug 2006 11:51:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 89407 invoked by uid 99); 8 Aug 2006 11:51:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 04:51:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.253.83.141] (HELO authusersmtp.mail.cornell.edu) (128.253.83.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 04:51:39 -0700 Received: from [128.253.38.244] (defiant.ento.cornell.edu [128.253.38.244]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id k78BpIA1026520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 8 Aug 2006 07:51:18 -0400 (EDT) Message-ID: <44D87AB6.6000802@cornell.edu> Date: Tue, 08 Aug 2006 07:51:18 -0400 From: David Smith User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Taglibs ; error in a JSP using expression langluage References: <44D86ED8.4090109@nats.informatik.uni-hamburg.de> <44D878CF.8010105@pidster.com> In-Reply-To: <44D878CF.8010105@pidster.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N One other possibility -- which servlet spec version do you have specified in your web.xml? If web.xml declares an older version of the servlet spec, these ${} expressions may not be available. --David Pid wrote: >which version of tomcat are you using? > >is Expression Language enabled? as it looks like it's passing the ${0} >variable as a string rather than evaluating it. > >Try setting the following attribute in your JSP 'page' directive. > ><%@ page ... isELIgnored="false" %> > > >Le Nguyen-Thinh wrote: > > >>Dear friends, >> >>I have a JSP which uses following taglibs: >> >><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> >><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> >> >> >>My JSP contains a piece of code which calls a tag from the taglib above: >>>var="ind"> >> >value="${paramValues.argName[ind]}" /> >> >value="${paramValues.argType[ind]}" /> >> >value="${paramValues.argMode[ind]}" /> >> >value="${paramValues.argState[ind]}" /> >> >value="${argBean}" /> >> >> >>The Tomcat server returns following error: >> >>java.lang.NumberFormatException: For input string: "${0}" >> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) >> >> java.lang.Integer.parseInt(Integer.java:447) >> java.lang.Integer.valueOf(Integer.java:553) >> org.apache.jasper.compiler.JspUtil.coerceToInt(JspUtil.java:752) >> >>It seems to me that Tomcat could not interpret the JSP. My question is, >>do I miss some libraries? Do My application runs on Linux Debian, >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) >>(j2sdk1.5-sun). >>The taglibs jstl.jar and standard.jar stem from >>jakarta-taglibs-standard-1.1.2. >> >>Thanks a lot for your help. >> >>Thinh >> >> >>--------------------------------------------------------------------- >>To start a new topic, e-mail: users@tomcat.apache.org >>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> >> >> > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org