craigmcc 01/04/21 17:46:19 Modified: doc struts-bean.xml src/share/org/apache/struts/taglib/bean DefineTei.java Log: Make the <bean:define> tag conform to the documentation. When you specify a "value" attribute but no "type" attribute, the generated scripting variable will be of type "java.lang.String". PR: Bugzilla #1422 Submitted by: Keith Morrell <[EMAIL PROTECTED]> Revision Changes Path 1.3 +0 -1 jakarta-struts/doc/struts-bean.xml Index: struts-bean.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/struts-bean.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- struts-bean.xml 2001/04/14 02:37:31 1.2 +++ struts-bean.xml 2001/04/22 00:46:19 1.3 @@ -138,7 +138,6 @@ <ul> <li>Unconditionally creates (or replaces) a bean under the specified identifier.</li> - <li>Creates beans in page scope only.</li> <li>Can create a bean with the value returned by a property getter of a different bean (including properties referenced with a nested and/or indexed property name).</li> 1.6 +5 -5 jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java Index: DefineTei.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DefineTei.java 2001/02/12 01:26:57 1.5 +++ DefineTei.java 2001/04/22 00:46:19 1.6 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v 1.5 2001/02/12 01:26:57 craigmcc Exp $ - * $Revision: 1.5 $ - * $Date: 2001/02/12 01:26:57 $ + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v 1.6 2001/04/22 00:46:19 craigmcc Exp $ + * $Revision: 1.6 $ + * $Date: 2001/04/22 00:46:19 $ * * ==================================================================== * @@ -73,7 +73,7 @@ * tag, identifying the scripting object(s) to be made visible. * * @author Craig R. McClanahan - * @version $Revision: 1.5 $ $Date: 2001/02/12 01:26:57 $ + * @version $Revision: 1.6 $ $Date: 2001/04/22 00:46:19 $ */ public class DefineTei extends TagExtraInfo { @@ -88,7 +88,7 @@ Object value = data.getAttribute("value"); if (type == null) { if (value != null) - type = value.getClass().getName(); + type = "java.lang.String"; else type = "java.lang.Object"; }