Awesome, Thanks!
>-- Original Message --
>Reply-To: "Struts Users Mailing List"
>Date: Tue, 22 Feb 2005 16:30:38 -0600
>To: "Mark Bennett" <[EMAIL PROTECTED]>,
>"Struts-Users"
>From: Joe Germuska <[EMAIL PROTECTED]>
>Su
At 2:25 PM -0500 2/22/05, Mark Bennett wrote:
How can I have struts put a java.util.Date object into a Bean?
I have found that I can set a Timestamp object into a bean. THIS DOES WORK
(below). However, if I change the type on the bean to java.util.Date then I
get a stack trace (also below). I've
a look a FormDef as well.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:56 PM
To: 'Struts Users Mailing List'
Subject: RE: java.util.Date vs java.sql.Timestamp
Well for starters:
Unless your persisting form objects, it really
Sent: Tuesday, February 22, 2005 3:46 PM
To: Struts Users Mailing List
Subject: RE: java.util.Date vs java.sql.Timestamp
1) save typing: casting, try/catch blocks, library calls
2) using iBatis and following the adivice of Clinton Begin in the manual:
* The use of java.sql.Timestamp is discoura
Sent: Tuesday, February 22, 2005 3:46 PM
To: Struts Users Mailing List
Subject: RE: java.util.Date vs java.sql.Timestamp
1) save typing: casting, try/catch blocks, library calls
2) using iBatis and following the adivice of Clinton Begin in the manual:
* The use of java.sql.Timestamp is discoura
-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: java.util.Date vs java.sql.Timestamp
Why do you care about how it comes into the form bean?
Usually the big deal is how it winds up in the business object
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:27 PM
To: Struts Users Mailing List
Subject: RE: java.util.Date vs java.sql.Timestamp
Thanks for the reply, but unless I can get it to work with java.util.Date I
will stick with the java.util.Timestamp because THIS DOES WORK implicitly
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:27 PM
To: Struts Users Mailing List
Subject: RE: java.util.Date vs java.sql.Timestamp
Thanks for the reply, but unless I can get it to work with java.util.Date I
will stick with the java.util.Timestamp because THIS DOES WORK implicitly
ECTED]
Sent: Tuesday, February 22, 2005 2:59 PM
To: Struts Users Mailing List
Subject: Re: java.util.Date vs java.sql.Timestamp
Hi
I would read the property as a String and then use
SimpleDateFormat to convert it to time stamp, i am not
sure if this conversion is done automatically in bean
p
Hi
I would read the property as a String and then use
SimpleDateFormat to convert it to time stamp, i am not
sure if this conversion is done automatically in bean
public setMyDate(String myDateString)
{
//i dont remmember the date format
try
{
SimpleDateFormat format = new SimpleDateFormat();
java
How can I have struts put a java.util.Date object into a Bean?
I have found that I can set a Timestamp object into a bean. THIS DOES WORK
(below). However, if I change the type on the bean to java.util.Date then I
get a stack trace (also below). I've also tried different formatting like:
value=
11 matches
Mail list logo