RE: Please Help - ClassCastException

2004-01-05 Thread Richard Hightower
below. Comments below look for * -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Sunday, January 04, 2004 10:18 PM To: Struts Users Mailing List Subject: RE: Please Help - ClassCastException Allow me to ask three more questions: 1. If I want to reset some spe

RE: Please Help - ClassCastException

2004-01-04 Thread Caroline Jen
String cast for me to save the > tediom. > > Making sense now? > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Sunday, January 04, 2004 2:46 AM > > To: Struts Users Mailing List > > Subject: RE: Please Hel

Re: Please Help - ClassCastException

2004-01-04 Thread Martin Gainty
List" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 1969 7:05 PM Subject: Re: Please Help - ClassCastException > On 04/01/2004 05:04, "Caroline Jen" <[EMAIL PROTECTED]> wrote: > > > Thank you for trying to help. I have added > > import org.

Re: Please Help - ClassCastException

2004-01-04 Thread Pedro Salgado
On 04/01/2004 05:04, "Caroline Jen" <[EMAIL PROTECTED]> wrote: > Thank you for trying to help. I have added > import org.apache.artimus.message.PostForm; > to my action class. I do not fully follow what I > should check in the struts-config.xml file. And > should I use name="postForm" with lowe

RE: Please Help - ClassCastException

2004-01-04 Thread Joe Hertz
us IMHO. > > > > In your action, you absolutely want to cast the form > > to PostForm. Otherwise > > the form variable has no way to know properties are > > associated with it. So > > yes, once you cast it to PostForm calls to > > BeanUtils.copyProp

RE: Please Help - ClassCastException

2004-01-04 Thread Caroline Jen
ll work properly. > > Hope this helps, > > -Joe > > > > > -Original Message----- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Sunday, January 04, 2004 1:42 AM > > To: Struts Users Mailing List > > Subject: RE: Please Help - C

RE: Please Help - ClassCastException

2004-01-03 Thread Joe Hertz
helps, -Joe > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 04, 2004 1:42 AM > To: Struts Users Mailing List > Subject: RE: Please Help - ClassCastException > > > I think that there are a lot more mistakes in my code > tha

RE: Please Help - ClassCastException

2004-01-03 Thread Caroline Jen
it as-initially defined (not casting like > above) and use BeanUtils > such as: > String receiver = (String) > PropertyUtils.getSimpleProperty(form, > "receiver"); > > Regards, > David > > -Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] &

RE: Please Help - ClassCastException

2004-01-03 Thread David Friedman
such as: String receiver = (String) PropertyUtils.getSimpleProperty(form, "receiver"); Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 11:04 PM To: Struts Users Mailing List Subject: Re: Please Help - ClassCastException Thank

Re: Please Help - ClassCastException

2004-01-03 Thread Caroline Jen
Thank you for trying to help. I have added import org.apache.artimus.message.PostForm; to my action class. I do not fully follow what I should check in the struts-config.xml file. And should I use name="postForm" with lowercase 'p' or uppercase 'P'? In my struts-config.xml file, I have:

Re: Please Help - ClassCastException

2004-01-03 Thread Pedro Salgado
On your struts config file check if the form bean for StoreMessage action is of type pkg.pkg.PostForm and if the action name is pointing to the correct form bean... It also seems to be missing the import of the PostForm on your action class. Pedro Salgado On 04/01/2004 03:22, "Caroline Jen" <[