permaculture playing cards*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Date Format in Struts" Watch "Date Format in Struts" New topic
Author

Date Format in Struts

andrea casini
Greenhorn

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: http://www.roseindia.net/struts/struts2/date/struts-2-date-format.shtml
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Date Format in Struts