Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Couldn't display Timestamp date

 
Rajasekhar Pentakota
Ranch Hand
Posts: 38
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64685
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic