RE: How to handle Dates?
Brian McGovern wrote: Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? I wrote my own tag to format dates before I came across the Jakarta Taglibs. You could try the Date/Time taglib if you don't want to use JSTL. http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle Dates?
I solved this problem with a format key in my application.properties: application.date_format.short=dd.MM. application.date_format.long=dd.MM. hh:mm:ss and in presentation layer I use : bean:write. this tag has: formatKey or format as atributes. in my case I use formatKey. if you would like to change the formating just modify the format in your application.properties. I hope will help this. On Fri, 25 Feb 2005 10:45:26 -, Bob Arnott [EMAIL PROTECTED] wrote: Brian McGovern wrote: Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? I wrote my own tag to format dates before I came across the Jakarta Taglibs. You could try the Date/Time taglib if you don't want to use JSTL. http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to handle Dates?
Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? -B
Re: How to handle Dates?
I use Struts throughout my application, but I also use the JSTL in a few places. This is what I use for date formatting: [EMAIL PROTECTED] uri=/WEB-INF/fmt.tld prefix=fmt % Date Available: brbfmt:formatDate value='${prop.availableDate}' / -Original Message- From: Brian McGovern [EMAIL PROTECTED] Sent: Feb 24, 2005 3:19 PM To: Struts Users Mailing List user@struts.apache.org Subject: How to handle Dates? Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle Dates?
A java.util.Date in any scope would work fine. Larry On Thu, 24 Feb 2005 16:40:07 -0500, Brian McGovern [EMAIL PROTECTED] wrote: Im not too familiar with JSTL. What type of object is prop.availableDate? Is it stored in the standard request, or session scope? -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 4:21 PM To: Struts Users Mailing List Subject: Re: How to handle Dates? I use Struts throughout my application, but I also use the JSTL in a few places. This is what I use for date formatting: [EMAIL PROTECTED] uri=/WEB-INF/fmt.tld prefix=fmt % Date Available: brbfmt:formatDate value='${prop.availableDate}' / -Original Message- From: Brian McGovern [EMAIL PROTECTED] Sent: Feb 24, 2005 3:19 PM To: Struts Users Mailing List user@struts.apache.org Subject: How to handle Dates? Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to handle Dates?
How can I use fmt:formatDate value='${prop.availableDate}' / and use a locale specific format from ApplicaionResources.properties? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 4:42 PM To: Struts Users Mailing List Subject: Re: How to handle Dates? A java.util.Date in any scope would work fine. Larry On Thu, 24 Feb 2005 16:40:07 -0500, Brian McGovern [EMAIL PROTECTED] wrote: Im not too familiar with JSTL. What type of object is prop.availableDate? Is it stored in the standard request, or session scope? -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 4:21 PM To: Struts Users Mailing List Subject: Re: How to handle Dates? I use Struts throughout my application, but I also use the JSTL in a few places. This is what I use for date formatting: [EMAIL PROTECTED] uri=/WEB-INF/fmt.tld prefix=fmt % Date Available: brbfmt:formatDate value='${prop.availableDate}' / -Original Message- From: Brian McGovern [EMAIL PROTECTED] Sent: Feb 24, 2005 3:19 PM To: Struts Users Mailing List user@struts.apache.org Subject: How to handle Dates? Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]