dwr.xml 配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">
<dwr>
	<allow>
	
		<!-- 配置桌面引用接口 -->
		<create creator="spring" javascript="hereClasses">
			<param name="beanName" value="iReady"/>
			<include method="getBigClassList"/>
			<include method="getMiddleClassList"/>
			<include method="getSmallClassList"/>
			<include method="getProductParameter"/>
		</create>
		
		<create creator="spring" javascript="hereArea">
			<param name="beanName" value="iArea"/>
			<include method="getCountryList"/>
			<include method="getCityList"/>
			<include method="getProvinceList"/>
		</create>
		
		
		<!-- 创建dwr对象 -->
		<create creator="new" javascript="hereClass">
			<param name="class" value="cn.com.hello.bean.ProductCatalog"/>
		</create>
		<create creator="new" javascript="productParameter">
			<param name="class" value="cn.com.hello.bean.ProductParameter"/>
		</create>
		<create javascript="area" creator="new">
			<param name="class" value="cn.com.hello.bean.Area"/>
		</create>
		
		
		
		<!-- 转换对象 -->
		<convert match="cn.com.hello.bean.ProductCatalog" converter="bean"/>
		<convert match="cn.com.hello.bean.ProductParameter" converter="bean"/>
		<convert match="cn.com.hello.bean.Area" converter="bean"/>
		<!-- 
			<param name="include" value="id, classId, higherUpClassId, name, levels"></param>
		 -->
	</allow>
</dwr>

你可能感兴趣的:(java,xml,Web,DWR)