luehe       2002/12/13 07:55:34

  Modified:    jasper2/src/share/org/apache/jasper/compiler Validator.java
  Log:
  Fixed 15354 (Cont.): Jasper doesn't cause a translation error if an EL
  or RT expression is provided to an attribute of jsp:plugin that
  doesn't accept dynamic attribute values.
  
  Revision  Changes    Path
  1.59      +6 -4      
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.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- Validator.java    13 Dec 2002 15:34:39 -0000      1.58
  +++ Validator.java    13 Dec 2002 15:55:34 -0000      1.59
  @@ -1026,7 +1026,9 @@
        private void throwErrorIfExpression(Node n, String attrName,
                                            String actionName)
                    throws JasperException {
  -         if (isExpression(n, n.getAttributes().getValue(attrName))) {
  +         if (n.getAttributes() != null
  +                 && n.getAttributes().getValue(attrName) != null
  +                 && isExpression(n, n.getAttributes().getValue(attrName))) {
                err.jspError(n,
                             "jsp.error.attribute.standard.non_rt_with_expr",
                             attrName, actionName);
  
  
  

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

Reply via email to