tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/tagplugins/jstl ForEach.java
Date Wed, 22 Jan 2003 11:44:02 GMT
remm        2003/01/22 03:44:02

  Modified:    jasper2/src/share/org/apache/jasper/tagplugins/jstl
                        ForEach.java
  Log:
  - Fix problem with the type of the loop index.
  
  Revision  Changes    Path
  1.3       +7 -4      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/tagplugins/jstl/ForEach.java
  
  Index: ForEach.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/tagplugins/jstl/ForEach.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ForEach.java	6 Dec 2002 23:19:58 -0000	1.2
  +++ ForEach.java	22 Jan 2003 11:44:01 -0000	1.3
  @@ -89,9 +89,12 @@
   	// We must have a begin and end attributes
   	index = ctxt.getTemporaryVariableName();
   	ctxt.generateJavaSource("for (int " + index + " = ");
  +	ctxt.generateJavaSource("Integer.parseInt(");
   	ctxt.generateAttribute("begin");
  -	ctxt.generateJavaSource("; " + index + " <= ");
  +	ctxt.generateJavaSource("); " + index + " <= ");
  +	ctxt.generateJavaSource("Integer.parseInt(");
   	ctxt.generateAttribute("end");
  +	ctxt.generateJavaSource(")");
   	if (hasStep) {
   	    ctxt.generateJavaSource("; " + index + "+=");
   	    ctxt.generateAttribute("step");
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message