luehe       2002/09/09 11:12:51

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  Fixed 12393: Compile time error if passing EL as argument to property attribute
  
  Revision  Changes    Path
  1.94      +11 -7     
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- Generator.java    9 Sep 2002 17:14:43 -0000       1.93
  +++ Generator.java    9 Sep 2002 18:12:50 -0000       1.94
  @@ -1035,15 +1035,19 @@
                   // optimize the case where the bean is exposed with
                   // <jsp:useBean>, much as the code here does for
                   // getProperty.)
  +
  +             // The following holds true for the arguments passed to
  +             // JspRuntimeLibrary.handleSetPropertyExpression():
  +             // - 'pageContext' is a VariableResolver.
  +             // - 'this' (either the generated Servlet or the generated tag
  +             //   handler for Tag files) is a FunctionMapper.
                   out.printil("JspRuntimeLibrary.handleSetPropertyExpression(" +
                       "pageContext.findAttribute(\""  + name + "\"), \""
                       + property + "\", "
                       + quote(value.getValue()) + ", "
                       + "pageContext, "
  -                    + "pageContext, "   // pageContext is a VariableResolver.
  -                    + "this );");       // this (either the generated Servlet 
  -                                        // or the generated tag handler for 
  -                                        // Tag files) is a FunctionMapper.
  +                    + "(javax.servlet.jsp.el.VariableResolver) pageContext, "
  +                    + "(javax.servlet.jsp.el.FunctionMapper) this );");
               } else if( value.isNamedAttribute() ) {
                   // If the value for setProperty was specified via
                   // jsp:attribute, first generate code to evaluate
  
  
  

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

Reply via email to