This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
This works just fine. The "date" attribute value is passed as a Date object to the setter in the tag class.
BUT if I use <jsp:attribute> to specify the "date" attribute value, it is passed as a String object, so an exception is thrown: Cannot convert "Sun Feb 28 19:26:25 EET 2010" for the attribute date of the bean java.util.Date.
This is the synthax I used:
I haven't found in the specs anything which states that the <jsp:attribute> tag will ALWAYS return a String.