File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Date Format in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Date Format in Struts" Watch "Date Format in Struts" New topic

Date Format in Struts

andrea casini

Joined: Jul 27, 2010
Posts: 13
Hello to everyone.

I'm having a very annoying issue in displayng a date through a jsp.
I have a class like this, mapped in a database:

I would like to display the date in this format "dd-mm-yyyy hh:MM" and I don't know how. By now it just print a date in this format: "yyyy-mm-dd hh:MM:ss" which is the default setting.

I found this in google:
But this use Struts 2 and I'm using struts 1.3.8. Is there a way to make this work?

Thanks in advance and sorry for english.
subject: Date Format in Struts