RE: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Martin Gainty
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

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Lukasz Lenart
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

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Jim Kiley
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 > > &

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread foward
- > 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

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Lukasz Lenart
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/ --

ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread foward
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