BLOG NOTICE TAG CLOUD GUESTBOOK
RSS
CATEGORY

'dwr'에 해당되는 글 1건

  1. 2008/02/19 Spring 에서 DWR 사용하기
0
Comments

0
Trackbacks
기본적인 DWR 사용 설정은 흰둥이님 강좌를 참조 : http://cafe.naver.com/javalove/1588

dwr.xml

<dwr>
  <allow>

    <!-- Ad -->
    <create creator="spring" javascript="AdService">
      <param name="beanName" value="adService" />
    </create>
    <convert converter="bean" match="ad.domain.AdCost" />
   
    <!-- Code -->
    <create creator="spring" javascript="CodeService">
      <param name="beanName" value="codeService" />
    </create>
    <convert converter="bean" match="product.domain.Code" />
   
  </allow>
</dwr>


MyAppContext.xml

<beans>
  <bean id="adService" class="ad.service.AdServiceImpl">
    <property name="adDAO" ref="adDAO" />
  </bean>

  <bean id="codeService" class="product.service.CodeServiceImpl">
    <property name="codeDAO" ref="codeDAO" />
    <property name="productDAO" ref="productDAO" />
  </bean>
</beans>



wex.xml

<context-param>
  <param-name>spring-context</param-name>
    <param-value>/WEB-INF/context/MyAppContext.xml</param-value>
  </context-param>

  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

2008/02/19 23:54 2008/02/19 23:54
TAG ,