File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Taglib question more info... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Taglib question more info..." Watch "Taglib question more info..." New topic
Author

Taglib question more info...

Jeff Born
Greenhorn

Joined: Sep 27, 2002
Posts: 23
// Tag snippet

JSP call:


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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

How is categoryData declared in your JSP?
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeff Born
Greenhorn

Joined: Sep 27, 2002
Posts: 23
hCategories categoryData = (hCategories)session.getAttribute("CATEGORY_INFO");
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Have you set the <rtexprvalue> of the category attribute (in the TLD file) to true? This should do the trick.
Simon
Jeff Born
Greenhorn

Joined: Sep 27, 2002
Posts: 23
Simon,
Thanks so much, that was exactly what I was looking for.. (I exactly the wrong place.)
Thanks again,
Jeff Born
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
No problem!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Taglib question more info...