使用struts2的datetimepicker标签时候遇到JS错误:dojo未定义错误
一个页面中使用了datetimepicker标签,结果浏览器提示了js错误:dojo未定义
下面是页面代码:
?
找到了解决办法:
在页面的<head>标签中加入<s:head /> 如下:![]()
![]()
![]()
2 楼 feryy 2009-02-02 我的还是提示有问题啊
2009-02-02 14:00:09,823 ERROR (org.apache.struts2.dispatcher.Dispatcher:512) - Could not find action or result
There is no Action mapped for action name dojo.js. - [unknown location]
3 楼 liuwei1981 2009-02-02 feryy 写道我的还是提示有问题啊
2009-02-02 14:00:09,823 ERROR (org.apache.struts2.dispatcher.Dispatcher:512) - Could not find action or result
There is no Action mapped for action name dojo.js. - [unknown location]
struts2的action配置问题吧,你把action的名称配置成dojo.js了 4 楼 feryy 2009-02-02 liuwei1981 写道feryy 写道我的还是提示有问题啊
2009-02-02 14:00:09,823 ERROR (org.apache.struts2.dispatcher.Dispatcher:512) - Could not find action or result
There is no Action mapped for action name dojo.js. - [unknown location]
struts2的action配置问题吧,你把action的名称配置成dojo.js了
我不想显示action扩展名啊
struts.action.extension=
就出现这个问题了