Welcome to DWR
DWR is an Ajax remoting framework for Java to make it easy for web pages to
interact with Java classes.
Inside this Demo
The generated configuration / test pages show how DWR is setup.
Documented examples of how DWR works:
- Getting Started with DWR:
- Using JSONP with jQuery - DWR supports JSONP and JSON-RPC in these demos we integrate jQuery with DWR:
- Using Reverse Ajax to broadcast data:
- Server-Side Clock: A clock that is updated by the server using Reverse Ajax. Demonstrates access from a non-http thread.
- Table Update A table that is updated by the server using Reverse Ajax. Demonstrates how to filter a page so that only certain users receive updates (based on an attribute in the ScriptSession).
- Chat examples, one with the logic in JavaScript, and the other with logic in Java
- Binary file handling:
- File upload is easy - this example shows image manipulation
- Download is just as easy - this time with custom PDF generation
- Integration with the Dojo Toolkit:
DWR is testing installation ...
DWR uses JavaScript to make some initial checks. If you can see this message
then either you are a very fast reader, or JavaScript is not working
properly in your browser.
Since AJAX requires JavaScript, you will need to enable JavaScript in your
browser before you can test DWR. Some very old browsers like IE 4.0 have
very out of date support for JavaScript and are currently unsupported.
Please upgrade your browser.
DWR is partially working
DWR has received test data from the server, however for some reason this
data was mangled. Please report this error to the
DWR mailing list, including
your browser, server, OS configuration and any error messages that appeared
either in the browser (including the JavaScript console if one exists) and
the server console log.
Missing DWR JavaScript Functions
This is a fairly advanced page that tests DWR to check that everything is
setup properly for you.
It appears that you may be attempting to run DWR outside a servlet container
(possibly using a file: URL), or that the servlet engine has failed to load
the DWR servlet.
The problem is that this page failed to load resources from DWR. You might
try visiting the DWR configuration/test pages to see
what happens when you access DWR directly. Pay careful attention to error
messages on the app-server console in trying to diagnose what is wrong.
Also there could be an issue with your browser. Try viewing this page in a
different browser, particularly try a browser with a JavaScript console.
Errors reported in the JavaScript console could help diagnose the problem.
If this is not the cause of the problem, please report it to the
DWR mailing list, including
your browser, server, OS configuration and any error messages that appeared
either in the browser (including the JavaScript console if one exists) and
the server console log.
DWR is testing installation ...
This is a fairly advanced page that tests DWR. If you can see this message
for a prolonged period of time then you should check the following:
-
Can you see the test pages?
If not it is likely that DWR has not deployed in your web server properly;
Check the web server console and log files for error messages.
-
If you can see the test pages then DWR is loaded but is
something is preventing DWR working. Check your browser JavaScript console
for error messages, or see the main
DWR website for more information.
If none of these steps fixes the error, please report it to the
DWR mailing list, including
your browser, server, OS configuration and any error messages that appeared
either in the browser (including the JavaScript console if one exists) and
the server console log.