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

Couldn't display Timestamp date

Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 38

I would like to display a Timestamp date which is retrieved from oracle DB
using JSTL.

How can I achieve this. when I am directly cut tag

Date: <cut value="${row.SENT_DATE}" />

the output for this is


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

You'll need to convert the proprietary Oracle date value to a standard Java date. Apparently the Oracle construct has no toString() method defined.

The to affect the format, investigate the JSTL fmt tags.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Couldn't display Timestamp date
jQuery in Action, 3rd edition