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

Couldn't display Timestamp date

Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 37

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

oracle.sql.TIMESTAMP@a3aaf5


Thanks
Rajasekhar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Couldn't display Timestamp date
 
Similar Threads
How to convert timeStamp into corresponding date.
bean:write datetime
Date problem
Dates in MySQL
Current Timestamp in microseconds