Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Aysel Kaya   on Jun 16 In Java Category.

  
Question Answered By: Tarrant Thompson   on Jun 16

You Shouldn't set  creator for struts  in dwr  file , you only need set creator for actions and method that are used by ajax .
sth like this


<create creator="spring" javascript="testAction">
<include method="saveItem"/>
<include method="editItem"/>
<param name="beanName" value="testAction"/>
</create>

Besides ,dont forget to add your DWRServlet configuration in your web.xml

<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<description>Direct Web Remoter Servlet</description>
<servlet-class>com.parstelco.bucket.struts.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>

<init-param>
<param-name>testDwrXml</param-name>
<param-value>/WEB-INF/testDwr.xml </param-value>


</init-param>

</servlet>

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on DWR integration with struts Or get search suggestion and latest updates.


Tagged: