You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/05/15 04:35:58 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html MessagesTag.java

dgraham     2003/05/14 19:35:58

  Modified:    src/share/org/apache/struts/taglib/html MessagesTag.java
  Log:
  Formatting changes only.
  
  Revision  Changes    Path
  1.14      +17 -23    jakarta-struts/src/share/org/apache/struts/taglib/html/MessagesTag.java
  
  Index: MessagesTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/MessagesTag.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MessagesTag.java	4 Mar 2003 04:43:44 -0000	1.13
  +++ MessagesTag.java	15 May 2003 02:35:58 -0000	1.14
  @@ -58,7 +58,6 @@
    * <http://www.apache.org/>.
    */
   
  -
   package org.apache.struts.taglib.html;
   
   import java.util.Iterator;
  @@ -75,7 +74,6 @@
   import org.apache.struts.util.RequestUtils;
   import org.apache.struts.util.ResponseUtils;
   
  -
   /**
    * Custom tag that iterates the elements of a message collection.
    * It defaults to retrieving the messages from <code>Globals.ERROR_KEY</code>,
  @@ -86,7 +84,7 @@
    * @author David Winterfeldt
    * @version $Revision$ $Date$
    * @since Struts 1.1
  -*/
  + */
   public class MessagesTag extends BodyTagSupport {
   
       /**
  @@ -103,27 +101,27 @@
       /**
        * Iterator of the elements of this error collection, while we are actually
        * running.
  -    */
  +     */
       protected Iterator iterator = null;
   
       /**
        * Whether or not any error messages have been processed.
  -    */
  +     */
       protected boolean processed = false;
   
       /**
        * The name of the scripting variable to be exposed.
  -    */
  +     */
       protected String id = null;
   
       /**
        * The servlet context attribute key for our resources.
  -    */
  +     */
       protected String bundle = null;
   
       /**
        * The session attribute key for our locale.
  -    */
  +     */
       protected String locale = Globals.LOCALE_KEY;
   
       /**
  @@ -139,27 +137,26 @@
   
       /**
        * The message resource key for errors header.
  -    */
  +     */
       protected String header = null;
   
       /**
        * The message resource key for errors footer.
  -    */
  +     */
       protected String footer = null;
   
       /**
        * If this is set to 'true', then the <code>Globals.MESSAGE_KEY</code> will
        * be used to retrieve the messages from scope.
  -    */
  +     */
       protected String message = null;
   
  -
       public String getId() {
  -    return (this.id);
  +        return (this.id);
       }
   
       public void setId(String id) {
  -    this.id = id;
  +        this.id = id;
       }
   
       public String getBundle() {
  @@ -170,7 +167,6 @@
           this.bundle = bundle;
       }
   
  -
       public String getLocale() {
           return (this.locale);
       }
  @@ -180,14 +176,13 @@
       }
   
       public String getName() {
  -    return (this.name);
  +        return (this.name);
       }
   
       public void setName(String name) {
  -    this.name = name;
  +        this.name = name;
       }
   
  -
       public String getProperty() {
           return (this.property);
       }
  @@ -219,7 +214,6 @@
       public void setMessage(String message) {
           this.message = message;
       }
  -
   
       /**
        * Construct an iterator for the specified collection, and begin
  
  
  

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