`
gcgan
  • 浏览: 37319 次
社区版块
存档分类
最新评论

struts2 的ajax校验的问题(dojo is not defined)

阅读更多

完全模仿struts2的例子程序写的ajax校验(后来改得狗基本上一摸一样了)。始终出错:dojo is not defined。

页面已经生成了:

<script language="JavaScript" type="text/javascript">
    // Dojo configuration
    djConfig = {
        baseRelativePath: "/ajaxTest/struts/dojo",
        isDebug: false,
        bindEncoding: "UTF-8",
        debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
    };
</script>
但用.."/ajaxTest/struts/dojo.js又不能访问到dojo.js。不知道原因,哪位大哥帮下忙解释下?
分享到:
评论
2 楼 gcgan 2007-06-08  
scienceren 写道
这个bug是struts2.0.6里面的存在的,解决办法是可以更改struts2-core-2.0.6.jar\template\ajax中form-close.ftl等几个文件最后的dojo.widget.html.Tooltip要变成dojo.widget.Tooltip,该bug会在2.1中修正,等待下一个版本吧。


谢谢哈
1 楼 scienceren 2007-06-08  
这个bug是struts2.0.6里面的存在的,解决办法是可以更改struts2-core-2.0.6.jar\template\ajax中form-close.ftl等几个文件最后的dojo.widget.html.Tooltip要变成dojo.widget.Tooltip,该bug会在2.1中修正,等待下一个版本吧。

相关推荐

Global site tag (gtag.js) - Google Analytics