. This message serves for
information purposes only and shall not have any legally binding effect. Given
that e-mails can easily be subject to manipulation, we can not accept any
liability for the content provided.
> Date: Tue, 24 Mar 2009 16:50:54 +0100
> Subject: Re: ClassCastExc
2009/3/24 foward :
> the method getForm() return a object Form where before with the respective
> id is obtained and returned.
You put method getForm() in s:form as a action, which means such
method will be called by Struts 2 and the framework will expect a
String - result name, which you have to
Look at your execute() method or whatever method you're calling from your
JSP. I suspect that you are returning a com.dev.model.Form object instead
of a String like "success" or "input".
jk
On Tue, Mar 24, 2009 at 11:26 AM, foward wrote:
>
> Hello,
>
> I don't know if I m right posting here thi
lukaz,
the method getForm() return a object Form where before with the respective
id is obtained and returned.
Yes I m reading a book struts in action, I don't know if you recomend me a
good one.
Regards
Lukasz Lenart wrote:
>
> 2009/3/24 foward :
>>
>
> Method getForm() return object Form
2009/3/24 foward :
>
Method getForm() return object Form or String? Struts is expecting
that action will return a String not an object. I think you should
read some tutorial how to use Struts 2.
Regards
--
Lukasz
http://www.lenart.org.pl/
--
yes, it was the problem, I have solved it! thanks
Nils-Helge Garli wrote:
>
> Assuming you're using Hibernate or something, the save method probably
> returns the generated identity of the stored object instance. So my
> guess is that you're getting the id of the user returned, which is a
> Lo
What's "utente"?
In any case, you don't say where the exception is, but
for whatever reason your DAO isn't getting a user (if
that's where the exception is).
d.
--- slideharmony <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have a problem saving a bean User. I use the
> following code:
>
> UserDa
this line:
newuser = (User)getSession().save(user);
Hernandez, David wrote:
>
>
> What line's the Exception being thrown on?
>
> -Original Message-
> From: slideharmony [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 16, 2007 9:35 AM
> To: user@struts.apache.org
> Subject: Class
Assuming you're using Hibernate or something, the save method probably
returns the generated identity of the stored object instance. So my
guess is that you're getting the id of the user returned, which is a
Long, and not a User object.
Nils-H
On 11/16/07, slideharmony <[EMAIL PROTECTED]> wrote:
What line's the Exception being thrown on?
-Original Message-
From: slideharmony [mailto:[EMAIL PROTECTED]
Sent: Friday, November 16, 2007 9:35 AM
To: user@struts.apache.org
Subject: ClassCastException
Hello,
I have a problem saving a bean User. I use the following code:
UserDao dao
ssage-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 06 July 2004 06:42
To: Struts Users Mailing List
Subject: RE: ClassCastException when usig multiple web applications
Hi
The context name of my application is "am" .
Here is the sample code of action class, struts-config, tile
-
From: McCormack, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 7:38 PM
To: Struts Users Mailing List
Subject: RE: ClassCastException when usig multiple web applications
Please paste in a sample action and a sample tile-def. The more info the easier it is
to help you out
Please paste in a sample action and a sample tile-def. The more info the easier it is
to help you out. Also the name of your deployed app (context name).
Chris McCormack
-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subjec
13 matches
Mail list logo