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: 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

oracle.sql.TIMESTAMP@a3aaf5


Thanks
Raja
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61627
    
  67

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]
 
Consider Paul's rocket mass heater.
 
subject: Couldn't display Timestamp date