RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
:59 Para: Sreenivasa Chadalavada; Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully You deal with the conversion else where but not in the form bean, you can argue about it or just believe me. The action form sits between the view and the action, the date

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay
:53:31 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Anuj Upadhyay/Jeppesen/TMC) Subject: RE: Handling Date objects in ActionForm gracefully +1 -Original Message- From: Mark Lowe [mailto:[EMAIL

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
: Sreenivasa Chadalavada; Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully You deal with the conversion else where but not in the form bean, you can argue about it or just believe me. The action form sits between the view and the action, the date conversion goes

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Joe Hertz
the user pass a DateFormat into copyProperties :-)??? -Joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 3:58 AM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully +1 I also suggest

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
[mailto:[EMAIL PROTECTED] Enviado el: viernes, 26 de marzo de 2004 10:24 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
, 26 de marzo de 2004 10:24 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend to do it in the action and then when things get

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
, 26 de marzo de 2004 11:05 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully Freddy. No, you misunderstood if you thought I was responding with any hostility whatsoever. There is a general problem where input would be better validated in the web tier so

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users Mailing List Subject: Handling Date objects in ActionForm gracefully All, We are facing a problem when we define

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote: All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. Robert Taylor rtaylor @mulework.com 03/25/2004 02:35 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully What's the problem? robert

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
+1 -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:36 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
PROTECTED] Sent: Thursday, March 25, 2004 2:47 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully I am thinking of overriding the struts default mechanism. Override the default behavior of org.apache.commons.beanutils.ConvertUtils by registering a valid

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:47 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully I am thinking of overriding the struts default mechanism. Override the default behavior of org.apache.commons.beanutils.ConvertUtils by registering

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully yes it is. It should be done once per classloader. When struts populates the dyna form it is string array to string array conversion and uses populate method

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread anant.parnami
: Friday, March 26, 2004 1:06 AM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
. sandeep -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:11 PM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully Do you know if the behavior can be overridden? Thanks and Regards, Sree

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
. --- - Mark Lowe mark.lowe @boxstuff.com 03/25/2004 03:17 PM Please respond to Struts Users Mailing List                 To:        Struts Users Mailing List [EMAIL PROTECTED]         cc:                 Subject:        Re: Handling Date objects in ActionForm gracefully Ask yourself why