Hi,
I want use DWR for call method in actions class from Struts 2. It's
that possible?
I tried to add this declaration in dwr.xml
<create creator="none" javascript="dwraction">
<param name="class"
value="org.directwebremoting.webwork.DWRAction"/>
<include method="execute"/>
</create>
<convert converter="bean"
match="org.directwebremoting.webwork.ActionDefinition">
<param name="include"
value="namespace,action,method,executeResult" />
</convert>
<convert converter="bean"
match="org.directwebremoting.webwork.AjaxResult"/>
<convert converter="bean"
match="com.mycompany.app.webapp.action.core.*"/>
But, whe I execute dwr scripts, this exception is throws:
2008-11-21 17:37:04.589::WARN: Error for
/dwr/test/dwraction
java.lang.NoClassDefFoundError:
com/opensymphony/xwork/config/ConfigurationException
I tried add the class com/opensymphony/xwork/config/ConfigurationException
, but I don't know if that is correct.
How I can use DWR to level Actions? or Another idea for that ?
I don't want lost the session data.
Thanks in advance
Mauri.