aspose file tools*
The moose likes Struts and the fly likes Dojo is undefined - Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dojo is undefined - Struts 2" Watch "Dojo is undefined - Struts 2" New topic
Author

Dojo is undefined - Struts 2

chiru capri
Greenhorn

Joined: Apr 14, 2009
Posts: 2
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

Joined: Nov 27, 2006
Posts: 423

Maybe this thread helps: http://www.coderanch.com/t/420595/Struts/Struts-Dojo-dojo-undefined-error
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 14, 2009
Posts: 2
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
Don't get me started about those stupid light bulbs.
 
subject: Dojo is undefined - Struts 2