I'm not getting much of a response to my question.  Is this because I didn't
provide enough information?  Is it just not possible and no one wants to hurt
my feelings?
 
Can I have an object as an attribute?  Or can it only be a string?  In my
case I would want the attribute to be of class hCategories.  NOTE:
hCategories is not a java bean.
 
Thanks,
 
Jeff Born

        -----Original Message----- 
        From: Jeff Born 
        Sent: Wed 2/19/2003 10:08 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Can I use MyClass as a attribute
        
        

        // Tag snippet 
        private hCategories categories=null; 
        /** 
        * Getter/Setter for the attribute name as defined in the tld file 
        * for this tag 
        */ 
        public void setCategories(hCategories value){ 
        categories = value; 
        } 
        public hCategories getCategories(){ 
        return(categories); 
        } 
        JSP call: 
        <dl:productView categories="<%=categoryData%>" /> 

        

        Error message that is created: 

        Unable to convert string '<%=categoryData%>' to class 
        com.harland.datatypes.hCategories for attribute categories: 
        java.lang.IllegalArgumentException: Property Editor not registered
with the 
        PropertyEditorManager 

        Using Tomcat 4.1.18 

        First can I do this?  Then if I can how do I pass the hCategories
object? 

        

        Thanks, 

        Jeff Born 



Reply via email to