我做的是分页..
Hibernate+Spring+Struts2+DWR

解决方案 »

  1.   

    <allow>
        <create creator="new" javascript="validator">
             <param name="class" value="org.apache.struts2.validators.DWRValidator"/>
           </create>
            <convert converter="bean" match="com.opensymphony.xwork2.ValidationAwareSupport"/>
    </allow>如何使用validator.js访问action?
    还是直接访问action!!
      

  2.   

    你用dwr无非也就是想做ajax翻页对吧,那你还用action干什么呀,直接用dwr调用spring管理的分页bean不就可以了吗,这样你就只用考虑dwr和spring就可以了呀
      

  3.   

    dwr封装了ajax,ajax明显和struts不同路两种不同模式而已,代码结构清晰就行
      

  4.   

    Sorry!!上面点错了.7楼说的似有道理..
      

  5.   

    要是用spring整合dwr的话就没有必要去配置dwr.xml这个文件可以跟spring的applicationcontex.xml合一<beans default-autowire="byType"
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">