File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL null date problem" Watch "JSTL null date problem" New topic
Author

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)
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" />
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL null date problem
 
Similar Threads
jstl - fmt Tag problem
JSTL fmt with formatDate problem
getting the current date and formatting it.
JSTL SQL dataParam
Does JSTL core tag improves performance with not empty check?