This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL null date problem

Raj Puri
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the JSTL code:
<sql:update >
insert into cust (cust_date)
<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" />
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic