Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Taglib question more info...  RSS feed

 
Jeff Born
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
// 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
Posts: 65765
130
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is categoryData declared in your JSP?
bear
 
Jeff Born
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hCategories categoryData = (hCategories)session.getAttribute("CATEGORY_INFO");
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set the <rtexprvalue> of the category attribute (in the TLD file) to true? This should do the trick.
Simon
 
Jeff Born
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!