luehe       2003/02/13 14:48:45

  Modified:    jasper2/src/share/org/apache/jasper/compiler Validator.java
  Log:
  Fixed 17062: Unable to specify the 'var' or 'varReader' attributes of
  jsp:invoke using the jsp:attribute action.
  
  Revision  Changes    Path
  1.76      +7 -7      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- Validator.java    12 Feb 2003 23:44:23 -0000      1.75
  +++ Validator.java    13 Feb 2003 22:48:44 -0000      1.76
  @@ -953,8 +953,8 @@
            String scope = n.getTextAttribute ("scope");
            JspUtil.checkScope(scope, n, err);
   
  -         String var = n.getAttributeValue("var");
  -         String varReader = n.getAttributeValue("varReader");
  +         String var = n.getTextAttribute("var");
  +         String varReader = n.getTextAttribute("varReader");
            if (scope != null && var == null && varReader == null) {
                err.jspError(n, "jsp.error.missing_var_or_varReader");
            }
  @@ -970,8 +970,8 @@
            String scope = n.getTextAttribute ("scope");
            JspUtil.checkScope(scope, n, err);
   
  -         String var = n.getAttributeValue("var");
  -         String varReader = n.getAttributeValue("varReader");
  +         String var = n.getTextAttribute("var");
  +         String varReader = n.getTextAttribute("varReader");
            if (scope != null && var == null && varReader == null) {
                err.jspError(n, "jsp.error.missing_var_or_varReader");
            }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to