i'm going to intergrate dwr to spring-based project, zero-config files. all componet and controller are marked with annotation.
here is the problem:
if a class only annotated by dwr types like @RemoteProxy it works well
while the class is annotated using @Controller, the @RemoteProxy seems doesn't work.(cann't see anything in localhost:8080/myApp/dwr/)
here goes my dwr configration, is there any problems?
-----------------------------------
in web.xml , only add a sevlet-mapping of dwr/* to springdispatcher.
here is spring-dwr.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schem...ontext-3.0.xsd
http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<dwr:configuration />
<dwr:controller id="dwrController" debug="true" />
<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<dwr:annotation-scan base-package="com" scanDataTransferObject="true" scanRemoteProxy="true"/>
</beans>


Reply With Quote
