DWR is an engine that exposes methods of server-side Java objects to JavaScript code.
for each exposed class, DWR dynamically generates JavaScript to include in your Web page. The generated JavaScript contains stub functions that represent the corresponding methods on the Java class and also performs XMLHttpRequests behind the scenes.
With DWR, you do not define the Javascript proxy functions, DWR does that for you.
Have you tried something (I mean hooking up your javascript to actually call your class with the dwr-generated javascript)? What are you stuck on?
Oh wait, you said you put your cart object in dwr.xml, but the code you showed is for a service class.
Add the object of interest to the signature "and upon a call of the method it will fill it in automagically
Originally posted by John Todd:
Please correct me if I'm wrong but we can't use any object, just the standard HTTP servlet objects.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |