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 Couldn't display Timestamp date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
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: 63052
    
  69

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
 
It's not a secret anymore!