File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes DWR with Struts.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DWR with Struts...." Watch "DWR with Struts...." New topic

DWR with Struts....

Gaurav Rawat

Joined: Apr 26, 2006
Posts: 10
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

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

thanks in advance ...

SCJP 1.5 <br />SCWCD preparing...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
Gaurav Rawat

Joined: Apr 26, 2006
Posts: 10
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 !
I agree. Here's the link:
subject: DWR with Struts....
It's not a secret anymore!