struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Dunn" <>
Subject RE: Formatting dates in <html:text>
Date Wed, 26 Mar 2003 16:59:42 GMT
That's what I'm doing, but I was wondering if there was a better way.


-----Original Message-----
From: Jamesey []
Sent: Wednesday, March 26, 2003 10:53 AM
Subject: Re: Formatting dates in <html:text>

How about using SimpleDateFormat in the bean.. then you can apply your own
date format..

"Greg Dunn" <> wrote in message
> I'm trying to display a date in a particular format in an <html-el:text>
> box.  I'm filling my form bean from my DAO which returns a timestamp, and
> <html-el:text size="10" property="presReadingDate"
> value="${meterReading.dtPresReadDt}"/>
> displays the long date/time format 'Tue Mar 26 10:45:59 CST 2003' which is
> no good.
> I was looking at a discussion on this topic in the archives, but it
> that it was left as "food for thought"
> I use the JSTL <fmt:formatDate> tag to display a date outside a form, but
> can't be nested so it's no good here.
> This scenario seems like it would be fairly common.  What does one do
> Format the date in a get/set pair in their bean and display that?  Use
> HTML <input type="text"> tags?  What's best practice?
> Thanks,
> Greg

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message