tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler TagBeginGenerator.java
Date Thu, 06 Apr 2000 21:05:24 GMT
mandar      00/04/06 14:05:23

  Modified:    src/share/org/apache/jasper/compiler TagBeginGenerator.java
  Log:
  Bug Fix for #96
  
  TagData is reporting REQUEST_TIME_VALUE even for a
  constant expression.
  
  Revision  Changes    Path
  1.12      +3 -2      jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java
  
  Index: TagBeginGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TagBeginGenerator.java	2000/04/06 18:29:00	1.11
  +++ TagBeginGenerator.java	2000/04/06 21:05:22	1.12
  @@ -151,9 +151,10 @@
               for(int i = 0; i < attributes.length; i++)
                   if (attr.equals(attributes[i].getName())) {
                       found = true;
  -                    if (attributes[i].canBeRequestTime())
  +                    if (attributes[i].canBeRequestTime() &&
  +			JspUtil.isExpression((String)attribs.get(attr)))
                           attribs.put(attr, TagData.REQUEST_TIME_VALUE);
  -                }
  +		}
               
               if (!found)
                   throw new JasperException(Constants.getString("jsp.error.bad_attribute",
  
  
  

Mime
View raw message