You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by nb...@apache.org on 2003/02/05 04:03:13 UTC

cvs commit: jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts StrutsUtils.java

nbubna      2003/02/04 19:03:13

  Modified:    struts/src/java/org/apache/velocity/tools/struts
                        StrutsUtils.java
  Log:
  add access to ActionErrors.GLOBAL_ERRORS key - per bug 16740
  
  Revision  Changes    Path
  1.5       +11 -1     jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts/StrutsUtils.java
  
  Index: StrutsUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts/StrutsUtils.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StrutsUtils.java	23 Jun 2002 09:39:37 -0000	1.4
  +++ StrutsUtils.java	5 Feb 2003 03:03:13 -0000	1.5
  @@ -451,6 +451,16 @@
       
       
       /**
  +     * Returns the default "GLOBAL" category name that can be used with
  +     * messages that are not associated with a particular property.
  +     */
  +    static String getGlobalErrorName()
  +    {
  +        return org.apache.struts.action.ActionErrors.GLOBAL_ERROR;
  +    }
  +
  +
  +    /**
        * Returns the query parameter name under which a transaction token
        * must be reported.
        */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: cvs commit: jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts StrutsUtils.java

Posted by Nathan Bubna <na...@esha.com>.
Daniel said:
> Shouldn't htis method be public?

i suppose, but the ones around it weren't either, so i just committed the
patch as it was.  if we're going to make them public (which is fine with
me), then let's make them all public to be consistent.

Nathan Bubna
nathan@esha.com

> nbubna@apache.org writes:
>
> > nbubna      2003/02/04 19:03:13
> >
> >   Modified:    struts/src/java/org/apache/velocity/tools/struts
> >                         StrutsUtils.java
> >   Log:
> >   add access to ActionErrors.GLOBAL_ERRORS key - per bug 16740
> >
> >   Revision  Changes    Path
> >   1.5       +11 -1
jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts/Stru
tsUtils.java
> >
> >   Index: StrutsUtils.java
> >   ===================================================================
> >   RCS file:
/home/cvs/jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/s
truts/StrutsUtils.java,v
> >   retrieving revision 1.4
> >   retrieving revision 1.5
> >   diff -u -r1.4 -r1.5
> >   --- StrutsUtils.java 23 Jun 2002 09:39:37 -0000 1.4
> >   +++ StrutsUtils.java 5 Feb 2003 03:03:13 -0000 1.5
> >   @@ -451,6 +451,16 @@
> >
> >
> >        /**
> >   +     * Returns the default "GLOBAL" category name that can be used
with
> >   +     * messages that are not associated with a particular property.
> >   +     */
> >   +    static String getGlobalErrorName()
> >   +    {
> >   +        return org.apache.struts.action.ActionErrors.GLOBAL_ERROR;
> >   +    }
> >   +
> >   +
> >   +    /**
> >         * Returns the query parameter name under which a transaction
token
> >         * must be reported.
> >         */
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
> >
>
> --
>
> Daniel Rall <dl...@finemaltcoding.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: cvs commit: jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts StrutsUtils.java

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Shouldn't htis method be public?

nbubna@apache.org writes:

> nbubna      2003/02/04 19:03:13
> 
>   Modified:    struts/src/java/org/apache/velocity/tools/struts
>                         StrutsUtils.java
>   Log:
>   add access to ActionErrors.GLOBAL_ERRORS key - per bug 16740
>   
>   Revision  Changes    Path
>   1.5       +11 -1     jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts/StrutsUtils.java
>   
>   Index: StrutsUtils.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-velocity-tools/struts/src/java/org/apache/velocity/tools/struts/StrutsUtils.java,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- StrutsUtils.java	23 Jun 2002 09:39:37 -0000	1.4
>   +++ StrutsUtils.java	5 Feb 2003 03:03:13 -0000	1.5
>   @@ -451,6 +451,16 @@
>        
>        
>        /**
>   +     * Returns the default "GLOBAL" category name that can be used with
>   +     * messages that are not associated with a particular property.
>   +     */
>   +    static String getGlobalErrorName()
>   +    {
>   +        return org.apache.struts.action.ActionErrors.GLOBAL_ERROR;
>   +    }
>   +
>   +
>   +    /**
>         * Returns the query parameter name under which a transaction token
>         * must be reported.
>         */
>   
>   
>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
> 

-- 

Daniel Rall <dl...@finemaltcoding.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org