• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dojo is undefined - Struts 2

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe this thread helps: https://coderanch.com/t/420595/Struts/Struts-Dojo-dojo-undefined-error
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic