Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

fmt:formatDate issue  RSS feed

 
Sharon Cleary
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im getting the following error on a jsp page

An error occurred while evaluating custom action attribute "value" with value "${timing}": Attempt to convert String "${set.timing}" to type "java.util.Date", but there is no PropertyEditor for that type (null)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate

The variable timing is set using a c:set tag at the top of the page
<c:set var="timing" value="${set.timing}"/>

this is followed on by

<fmt:formatDate value="${timing}" pattern="MM/dd/yyyy',' h:mm a z"/>

This code previously worked so I have no idea whats after happening to it.
Any one have ideas as I'm really struggling with this.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the value in set.timing?
 
Sharon Cleary
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its set in the java code.
When I remove the c:set bit of code and try to reference it directly it works? Is there something wrong with the set code as I need to use this functionality...
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like timing does not have a valid value that can be converted to a date. Inspect what's in timing right after c:set.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!