This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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