You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2001/02/23 19:42:27 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/util RequestUtils.java

craigmcc    01/02/23 10:42:26

  Modified:    src/share/org/apache/struts/util RequestUtils.java
  Log:
  Correct problems with message lookups that include parameter replacements
  and use the new RequestUtils.message() method.  The parameter definition
  for the "args" parameter needs to be an array.
  
  Submitted by: Mark Geddes <ma...@ants.co.uk>
  PR: Bugzilla #685
  
  Revision  Changes    Path
  1.7       +5 -5      jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java
  
  Index: RequestUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RequestUtils.java	2001/02/20 01:48:46	1.6
  +++ RequestUtils.java	2001/02/23 18:42:25	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v 1.6 2001/02/20 01:48:46 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2001/02/20 01:48:46 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v 1.7 2001/02/23 18:42:25 craigmcc Exp $
  + * $Revision: 1.7 $
  + * $Date: 2001/02/23 18:42:25 $
    *
    * ====================================================================
    *
  @@ -89,7 +89,7 @@
    * in the Struts controller framework.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.6 $ $Date: 2001/02/20 01:48:46 $
  + * @version $Revision: 1.7 $ $Date: 2001/02/23 18:42:25 $
    */
   
   public class RequestUtils {
  @@ -273,7 +273,7 @@
        *  saved in the request already)
        */
       public static String message(PageContext pageContext, String bundle,
  -                                 String locale, String key, Object args)
  +                                 String locale, String key, Object args[])
           throws JspException {
   
           // Look up the requested MessageResources