• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DWR with Struts....

 
Gaurav Rawat
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to work with DWR with struts ,as per the integration shown at web page but still the config isn't working .Also didn't find any releavant example of struts with dwr using the struts creator ..
My config goes like:--

though when running it produces an error as 21:20:39,661 ERROR [DefaultCreatorManager] Error loading class for creator 'Stru
tsCreator[submitData]'.

Please help me on the same ,or refer to an example of the same if there ...

thanks in advance ...
Gaurav
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used DWR extensively in Struts appliactions, and frankly I never found any use for the Struts creator. It just offers you the ability to use AJAX to call methods on your ActionForm bean. Since Struts tags already have access to the ActionForm bean, why do you need AJAX access to it? I'd suggest using the "new" creator, and just use a Plain Old Java Object (POJO) with methods that DWR can call through AJAX to do whatever it is you need to do.
 
Gaurav Rawat
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merrill ...just wasted a long time pondering how to use the strutscreator ,ya rightly said it makes more sense to work arounf a POJo and implement ajax,....

cheers !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic