Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL null date problem

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the JSTL code:
<sql:update >
insert into cust (cust_date)
values(?)
<sql ateParam value="${xdate}" type="date" />
</sql:update >

Problem is when date is null it does not work. I have tried using fmt tag that also does not help. Seems i can not pass null dates using above tag. Any hints how to do this without using scriplets?

<fmt arseDate value="${x_date} var="parseddate"
pattern="MM/dd/yyyy" />
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic