개발

dwr converters

학생. 2007. 11. 23. 12:01
일전의 dwr관련 포스트에서 converters부분중에 잘못알고있던 부분이 있어 정정합니다.
기본적으로 DWR에서는 int,String 등의 primitive 타입들은 자동으로 변환이 됩니다.
추가로 Array나 Collection,Bean 등은 dwr.xml에 선언을 하는 방법이 문서에 있는데
bean을 제외한 Array, Map등은 DWR2.0에서 사용해본 결과 메소드에서 해당 형으로 결과를 리턴하면
스크립트에서는 JSON형태로 잘 넘어와지는 것을 확인하였습니다.


라고 적은 부분이 있는데 문서를 보다보니 아래내용이 있네요..
기본으로 변경되는것들은 아래 인용구에 있는것들입니다. (__)
By default all of the following are converted for you without further declaration:
  • All primitive types, boolean, int, double, etc.
  • The Class based versions of the these Boolean, Integer, etc.
  • java.lang.String
  • java.util.Date and the 3 SQL derivatives
  • arrays of the above
  • Collections (Lists, Sets, Maps, Iterators, etc) of the above
  • DOM objects (like Element and Document) from DOM, XOM, JDOM and DOM4J
반응형

'개발' 카테고리의 다른 글

리눅스 로케일 설정.  (0) 2008.01.08
접근성을 해치지않는 스크립트 사용  (0) 2007.11.27
오라클 character set 변경.  (0) 2007.11.16
DWR : Easy Ajax for JAVA  (1) 2007.11.06
톰캣5.5 admin  (0) 2007.10.19