wood burning stoves*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts + Display tag.