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 <fow...@gmail.com> wrote: > > Hello, > > I don't know if I m right posting here this, but I have this problem with > my > webapp and I couldn't find a solution I hope you can help me please: > > ERROR [httpSSLWorkerThread-8080-1] ActionComponent.executeAction(259) > java.lang.ClassCastException: com.dev.model.Form cannot be cast to > java.lang.String > at > > com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:409) > ............ > > I did search looking for an answer but I didnt find nothing... the thing is > when I call an action method in a view: > > <s:action name="createForm!getForm" id="action" namespace="default"/> > <div id="box"> > <p><strong>Survey : </strong> ${form.name}</p> > <p><strong>Introduction : </strong> ${form.introduction}</p> > <p><strong>Close Date:</strong> ${form.close_date}</p> > <br/> > </div> > > 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.lang.String-tp22682861p22682861.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com