jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdaw...@apache.org
Subject cvs commit: jakarta-taglibs/i18n/src/org/apache/taglibs/i18n ResourceHelper.java
Date Sat, 19 Jan 2002 07:35:28 GMT
tdawson     02/01/18 23:35:28

  Modified:    i18n/src/org/apache/taglibs/i18n ResourceHelper.java
  Log:
  added capability to specify scope when saving a bundle
  
  Revision  Changes    Path
  1.3       +7 -6      jakarta-taglibs/i18n/src/org/apache/taglibs/i18n/ResourceHelper.java
  
  Index: ResourceHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/i18n/src/org/apache/taglibs/i18n/ResourceHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResourceHelper.java	16 Oct 2001 03:58:07 -0000	1.2
  +++ ResourceHelper.java	19 Jan 2002 07:35:28 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/i18n/src/org/apache/taglibs/i18n/ResourceHelper.java,v
1.2 2001/10/16 03:58:07 tdawson Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/10/16 03:58:07 $
  + * $Header: /home/cvs/jakarta-taglibs/i18n/src/org/apache/taglibs/i18n/ResourceHelper.java,v
1.3 2002/01/19 07:35:28 tdawson Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/01/19 07:35:28 $
    *
    * ====================================================================
    * 
  @@ -94,17 +94,18 @@
      */
     static public ResourceBundle getBundle(PageContext pageContext)
       {
  -    return (ResourceBundle)pageContext.getAttribute(BUNDLE_REQUEST_KEY);
  +    return (ResourceBundle)pageContext.findAttribute(BUNDLE_REQUEST_KEY);
       }
   
     /**
      *  Caches the Bundle in the request using the BUNDLE_REQUEST_KEY.
      */
     static public void setBundle(PageContext pageContext,
  -                               ResourceBundle bundle)
  +                               ResourceBundle bundle,
  +                               int scope)
       {
       // put this in the page so that the getMessage tag can get it quickly
  -    pageContext.setAttribute(BUNDLE_REQUEST_KEY,bundle);
  +    pageContext.setAttribute(BUNDLE_REQUEST_KEY,bundle,scope);
       }
     
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message