Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

DWR integration with struts

  Asked By: Aysel    Date: Jun 16    Category: Java    Views: 2404
  

I want to integrate DWR with struts. I set <create
creator="struts" .../> in dwr.xml, but unfortunately,
I dont get any js.

Anybody can help me to use DWR and struts together? Is
there anybody done it in a project?

please give me your sugegstions or experiences.

I look forward to hearing from you.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Tarrant Thompson     Answered 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>

 
Answer #2    Answered By: Janelle Evans     Answered On: Jun 16

I've solved my
problem .but please check this URL out.
http://getahead.ltd.uk/dwr/server/struts

it is offical site of DWR, in this site Joe's written
about using of creator="struts"...

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




Tagged: