搞了半天,才搞明白DWR框架的dwr.xml如何编写.
格式如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN"
"http://www.getahead.ltd.uk/dwr/dwr10.dtd">
<dwr>
<allow>
<create creator="new" javascript="Chat">
<param name="class" value="[your.package].Chat"/>
</create>
<convert converter="bean" match="[your.package].Message"/>
</allow>
</dwr>