Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

DWR integration with struts

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

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.



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"/>

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

<display-name>DWR Servlet</display-name>
<description>Direct Web Remoter Servlet</description>

<param-value>/WEB-INF/testDwr.xml </param-value>



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

I've solved my
problem .but please check this URL out.

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.