File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSTL null date problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL null date problem" Watch "JSTL null date problem" New topic

JSTL null date problem

Raj Puri
Ranch Hand

Joined: Apr 24, 2003
Posts: 189
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" />
I agree. Here's the link:
subject: JSTL null date problem
It's not a secret anymore!