File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts + Display tag. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts + Display tag." Watch "Struts + Display tag." New topic
Author

Struts + Display tag.

Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hello every one ,

I am using Struts 2 + hibernate with Display tag.

In my database there are one table colon date contains date only not time like : - 2002-10-17
and same another table contains time only like : - 11:48:19.

My question is when i select record from data base and display it with <display:column then it display date like :- 2008-10-17 00:00:00.0 and
time like :- 1970-01-01 11:48:19.0

but i want Date :- 2008-10-17 and time :- 11:48:19.0 only.

Please give me suggestion for this ASAP how I can format this date and time in display tag.


Thanks,
Nishan Patel


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
Don't get me started about those stupid light bulbs.
 
subject: Struts + Display tag.
 
Similar Threads
Time Difference
Convert Local time to UTC and vice versa
Time Difference
count by current timestamp
datatable iteration