eption com.dev.model.Form cannot be cast to
> java.lang.String
> From: lukasz.len...@googlemail.com
> To: user@struts.apache.org
>
> 2009/3/24 foward :
> >
>
> Method getForm() return object Form or String? Struts is expecting
> that action will return a String not
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/
--
5 matches
Mail list logo