|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
DWR Spring configuration namespaceI'm trying to set up DWR using it's namespace with Spring 2.5 and DWR 2.0.1 and am running into problems. I was able to set up using the "Basic Configuration" described in "Spring in Action" which uses the dwr.xml file. However, this does not support springs dependency injection. So using namespace here is what I have:
in web.xml: <servlet> <servlet-name>dwr</servlet-name> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class> <load-on-startup>2</load-on-startup> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> in applicationContext.xml <bean id="articleManager" class="com.test.project.service.impl.ArticleManagerImpl"> <dwr:remote javascript="ArticleManager"> <dwr:include method="helloWorld"/> </dwr:remote> <property name="articleDao" ref="articleDao"/> <property name="draftArticleDao" ref="draftArticleDao"/> </bean> <dwr:configuration> <dwr:convert type="bean" class="com.test.project.model.Article" /> </dwr:configuration> When I start up and load my page the "ArticleMager" does seem to exist as a javascript object but the helloWorld method is = to undefined. So, I'm clearly missing something...but I'm at a loss for ideas. Any help of good examples would be greatly appreciated. Thank you, B ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
| Free Forum Powered by Nabble | Forum Help |