struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oalex...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/bean DefineTei.java
Date Mon, 04 Mar 2002 15:44:19 GMT
oalexeev    02/03/04 07:44:19

  Modified:    src/share/org/apache/struts/taglib/bean DefineTei.java
  Log:
  Fix class cast problem.
  Source - mariopasquini@libero.it
  
  Revision  Changes    Path
  1.8       +6 -6      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DefineTei.java	21 Feb 2002 17:48:14 -0000	1.7
  +++ DefineTei.java	4 Mar 2002 15:44:19 -0000	1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v
1.7 2002/02/21 17:48:14 oalexeev Exp $
  - * $Revision: 1.7 $
  - * $Date: 2002/02/21 17:48:14 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v
1.8 2002/03/04 15:44:19 oalexeev Exp $
  + * $Revision: 1.8 $
  + * $Date: 2002/03/04 15:44:19 $
    *
    * ====================================================================
    *
  @@ -73,7 +73,7 @@
    * tag, identifying the scripting object(s) to be made visible.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.7 $ $Date: 2002/02/21 17:48:14 $
  + * @version $Revision: 1.8 $ $Date: 2002/03/04 15:44:19 $
    */
   
   public class DefineTei extends TagExtraInfo {
  @@ -84,8 +84,8 @@
        */
       public VariableInfo[] getVariableInfo(TagData data) {
   
  -        String type = data.getAttributeString("type");
  -        String name = data.getAttributeString("name");
  +        String type = (String)data.getAttribute("type");
  +        Object name = data.getAttribute("name");
           Object value = data.getAttribute("value");
           if (type == null) {
               if ( (value!=null) || ( (value==null) && (name==null) ) )
  
  
  

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


Mime
View raw message