Author: jholmes Date: Wed Jun 15 09:09:04 2005 New Revision: 190770 URL: http://svn.apache.org/viewcvs?rev=190770&view=rev Log: Changed logic so that the "must specify only one of..." message only get's thrown if the user is specifying more than one of the available options. The code was throwing the message if the user didn't specify any at all and should be flowing down to the "no value specified" error message.
Modified: struts/taglib/trunk/src/java/org/apache/struts/taglib/bean/DefineTag.java Modified: struts/taglib/trunk/src/java/org/apache/struts/taglib/bean/DefineTag.java URL: http://svn.apache.org/viewcvs/struts/taglib/trunk/src/java/org/apache/struts/taglib/bean/DefineTag.java?rev=190770&r1=190769&r2=190770&view=diff ============================================================================== --- struts/taglib/trunk/src/java/org/apache/struts/taglib/bean/DefineTag.java (original) +++ struts/taglib/trunk/src/java/org/apache/struts/taglib/bean/DefineTag.java Wed Jun 15 09:09:04 2005 @@ -217,7 +217,7 @@ if (this.value != null) { n++; } - if (n != 1) { + if (n > 1) { JspException e = new JspException(messages.getMessage("define.value")); TagUtils.getInstance().saveException(pageContext, e); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]