DWR之DWR实例(1)
----------1.首先向项目中加入dwr.jar文件,这里我们使用maven构建,同时dwr还要依赖commons-logging.jar包,如例(pom.xml):
- <projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
- modelVersion>4.0.0</>
- groupId>aaaartifactId>bbbpackaging>warversion>0.0.1-SNAPSHOTname>bbbMavenWebappurl>http://maven.apache.orgdependenciesdependency>junit>3.8.1scope>test <!--必需的依赖-->
- >org.directwebremoting>dwr>3.0.M1>commons-logging>1.1.1buildfinalNameproject>
copy