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
view:
>
>
>
> Survey : ${form.name}
> Introduction : ${form.introduction}
> Close Date: ${form.close_date}
>
>
>
> to show information about one Form.
>
> Please if you can guide me to solve this, Thanks in advance!
>
> Best Regards
>
>
&
-
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/ClassCastException-com.dev.model.Form-cannot-be-cast-to-j
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/
--
troduction : ${form.introduction}
Close Date: ${form.close_date}
to show information about one Form.
Please if you can guide me to solve this, Thanks in advance!
Best Regards
--
View this message in context:
http://www.nabble.com/ClassCastException-com.dev.model.Form-cannot-be-cast-to-java.l
6 matches
Mail list logo