aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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
Similar Threads
getting the current date and formatting it.
JSTL SQL dataParam
Does JSTL core tag improves performance with not empty check?
JSTL fmt with formatDate problem
jstl - fmt Tag problem