jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/util JspVariableContext.java
Date Wed, 08 Aug 2001 21:52:39 GMT
jstrachan    01/08/08 14:52:39

  Modified:    xtags/src/org/apache/taglibs/xtags/util
                        JspVariableContext.java
  Log:
  Patch applied so that XTags will work fine with the latest 0.9 release of dom4j
  
  Revision  Changes    Path
  1.2       +12 -0     jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/util/JspVariableContext.java
  
  Index: JspVariableContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/util/JspVariableContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JspVariableContext.java	2001/05/05 18:06:33	1.1
  +++ JspVariableContext.java	2001/08/08 21:52:39	1.2
  @@ -109,4 +109,16 @@
           }
           return answer;
       }
  +    
  +    public Object getVariableValue(String prefix, String name) {
  +        // XXXX: should use prefix to restrict attribute
  +        Object answer = JspHelper.findAttribute( pageContext, name );
  +        if ( answer == null ) {
  +            answer = pageContext.getRequest().getParameter( name );
  +            if ( answer == null ) {
  +                answer = pageContext.getServletContext().getInitParameter( name );
  +            }
  +        }
  +        return answer;
  +    }
   }
  
  
  

Mime
View raw message