Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts with Ajax (DWR)

 
Amit Athavale
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Ajax (DWR framework) within Struts Framework.
Per DWR Documentation, they have added StrutsCreator in current version to support struts framework. I just do not know how to use / integrate it. I am new to AJAX. Can anyone please help me out.

When I try to make a dwr call on jsp, I get javascript error [object error] and on the console I can see error -
uk.ltd.getahead.dwr.util.CommonsLoggingOutput error SEVERE: No converter found for org.apache.struts.action.ActionServletWrapper.

Please help!
 
Mohit Jhawar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the error message is because you are using an object as data in your javascript calls and not specifying converter for it in dwr.xml. You have to use a converter to tell dwr that what your POJO is composed of.


hth
mohit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic