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
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
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.
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
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
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
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
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]
&
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
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:
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" <[
11 matches
Mail list logo