• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo is undefined - Struts 2

 
chiru capri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While testing Struts 2 build 11 with dojo for ajax I am getting 'Dojo' is undefined error. I have verified the filter mapping and it is

<filter-mapping>
<filter-name>MyProj</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping

Error in IE -

"
Message: 'dojo' is undefined
Line: 22
Char: 1
Code: 0
URI: http://qqqq.xxxx.com:9081/MyProj/struts/simple/dojoRequire.js
"


need urgent help please
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you include the <s:head> tag? Including the page that's causing the error is usually pretty helpful, otherwise we're just guessing.
 
chiru capri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I did that ...but still its giving the issue

Is there any configuration that needs to be done based on OS?
I tested the application on Windows it was working but when I deployed the EAR on AIX it started troubling me. Any specific set-up of configuration that has to be taken care?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to provide more information. What server, what servlet/jsp version it supports, the JSP, the complete struts.xml, and so on.

I can't read your, or your computer's, mind.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic