--- Radio.orig 2003-12-12 09:39:28.000000000 +0000 +++ Radio.java 2003-12-12 23:15:41.000000000 +0000 @@ -3,7 +3,7 @@ * * The Apache Software License, Version 1.1 * - * Copyright (c) 1999 The Apache Software Foundation. All rights + * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -11,7 +11,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -19,15 +19,15 @@ * distribution. * * 3. The end-user documentation included with the redistribution, if - * any, must include the following acknowlegement: - * "This product includes software developed by the + * any, must include the following acknowlegement: + * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software * Foundation" must not be used to endorse or promote products derived - * from this software without prior written permission. For written + * from this software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache" @@ -53,7 +53,7 @@ * information on the Apache Software Foundation, please see * . * - */ + */ package org.apache.taglibs.input; import java.util.*; @@ -63,7 +63,7 @@ /** * - * This class implements the <input:radio> tag, which presents an + * This class implements the <input:radio> tag, which presents an * <input type="radio" ... /> form element. * * @version 0.90 @@ -117,7 +117,7 @@ // check this button if it's the right one String target; - + // First check the bean value String beanValue = ( beanId != null ? Util.beanPropertyValue( pageContext.findAttribute( beanId ), name ) : null ); @@ -131,9 +131,9 @@ else { target = req.getParameter(name); } - + if (target != null && target.equals(value)) - out.print("checked=\"true\" "); + out.print("checked=\"checked\" "); // end the tag out.print("/>"); @@ -155,11 +155,11 @@ public void setAttributes(Map x) { attributes = x; } - + public void setAttributesText( String x ) { attributesText = x; } - + public void setBean( String x ) { beanId = x; } @@ -167,27 +167,27 @@ public void setDefault(String x) { dVal = x; } - + /** Getter for property name. * @return Value of property name. */ public String getName() { return name; } - + /** Getter for property default. * @return Value of property default. */ public String getDefault() { return dVal; } - + /** Getter for property bean. * @return Value of property bean. */ public String getBean() { return beanId; } - + /** Getter for property attributesText. * @return Value of property attributesText. */ public String getAttributesText() { return attributesText; } - + /** Getter for property attributes. * @return Value of property attributes. */ --- Radio.orig 2003-12-12 09:39:28.000000000 +0000 +++ Radio.java 2003-12-13 09:09:05.000000000 +0000 @@ -133,7 +133,7 @@ } if (target != null && target.equals(value)) - out.print("checked=\"true\" "); + out.print("checked=\"checked\" "); // end the tag out.print("/>");