DwrHandlerMapping - maybe include jsonrpc and jsonp?

View: New views
1 Messages — Rating Filter:   Alert me  

DwrHandlerMapping - maybe include jsonrpc and jsonp?

by ericfunk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi guys,
i played a bit with jsonp and annotation based configuration (spring) and i was wondering about the missing url handler mappings for jsonrpc and  jsonp

<dwr:configuration/>
<dwr:controller id="dwrController" debug="true">
        <dwr:config-param name="jsonRpcEnabled" value="true"/>
        <dwr:config-param name="jsonpEnabled" value="true"/>
</dwr:controller>
<dwr:annotation-scan base-package="com.kerb.xxxxxxx"/>
<dwr:url-mapping/>

i added

mappings.put("/jsonp/**", handler);
mappings.put("/jsonrpc/**", handler);

to org.directwebremoting.spring.DwrHandlerMapping.initApplicationContext

build the jar and it works just fine now -


may be you want to include this in future releases?

regards
eric