dgraham 2003/03/19 10:29:55 Modified: src/share/org/apache/struts/taglib/html SubmitTag.java Log: Added braces to if statements. Revision Changes Path 1.17 +13 -9 jakarta-struts/src/share/org/apache/struts/taglib/html/SubmitTag.java Index: SubmitTag.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/SubmitTag.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- SubmitTag.java 16 Nov 2002 06:05:21 -0000 1.16 +++ SubmitTag.java 19 Mar 2003 18:29:54 -0000 1.17 @@ -7,7 +7,7 @@ * * The Apache Software License, Version 1.1 * - * Copyright (c) 1999-2001 The Apache Software Foundation. All rights + * Copyright (c) 1999-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -179,8 +179,9 @@ if (bodyContent != null) { String value = bodyContent.getString().trim(); - if (value.length() > 0) + if (value.length() > 0) { text = value; + } } return (SKIP_BODY); @@ -198,10 +199,12 @@ // Acquire the label value we will be generating String label = value; - if ((label == null) && (text != null)) + if ((label == null) && (text != null)) { label = text; - if ((label == null) || (label.length() < 1)) + } + if ((label == null) || (label.length() < 1)) { label = "Submit"; + } // Generate an HTML element StringBuffer results = new StringBuffer(); @@ -210,8 +213,9 @@ results.append(" name=\""); results.append(property); // * @since Struts 1.1 - if( indexed ) + if (indexed) { prepareIndex( results, null ); + } results.append("\""); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]