struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From foward <fow...@gmail.com>
Subject Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String
Date Tue, 24 Mar 2009 16:07:10 GMT

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 <foward@gmail.com>:
>> <s:action name="createForm!getForm" id="action" namespace="default"/>
> 
> 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/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ClassCastException-com.dev.model.Form-cannot-be-cast-to-java.lang.String-tp22682861p22683750.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message