Trouble passing non-string values to custom tag attributes.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Adam_Stokar
Posted On:   Friday, March 14, 2008 01:57 AM

I have a bizarre problem. On my Windows machine, I am running Tomcat6, on Linux, Tomcat 5.5. My custom tags work fine on version 6, however I am getting the following error with the exact same file on Tomcat 5.5 Unable to convert string "${USER.memberSince}" to class "java.util.Date" for attribute "date": Property Editor not registered with the PropertyEditorManager My JSP contains the following tag memberSince is of type Date in my User class. The JSP is treating the value as a String rather than the Date type and I can't figure out why. I am having the same problem with other tags that have a type other than String. Do I not have the right .jar files in    More>>

I have a bizarre problem. On my Windows machine, I am running Tomcat6, on Linux, Tomcat 5.5. My custom tags work fine on version 6, however I am getting the following error with the exact same file on Tomcat 5.5

			
Unable to convert string "${USER.memberSince}" to class "java.util.Date" for attribute "date": Property Editor not registered with the PropertyEditorManager



My JSP contains the following tag
			



memberSince is of type Date in my User class. The JSP is treating the value as a String rather than the Date type and I can't figure out why. I am having the same problem with other tags that have a type other than String. Do I not have the right .jar files in my lib? Is there any reason this would be working in Tomcat6 on Windows but not in Tomcat5.5 on Linux? Any help is appreciated.    <<Less
About | Sitemap | Contact