• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Can't access dwr.util in Jspx page of Spring MVC application

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I have successfully integrated Spring mvc 3 with DWR 3. I can access beans' exposed method by http://localhost:8080/myweb-application/dwr/test/mybean

Now I am trying to use the DWR functions in my application's Jspx screen. If I try to use any of the dwr util/engine funtions I get a javascript error as 'java.util is null or not an object'.

The DWR integration with the application is fine and all dwr.util functions work in jsp page as well (I tried with jsp page just to test if there is any issue with the configuration).

I have also added following scripts in my JSPX page

<script type="text/javascript" src='/my_web_aplication/dwr/interface/MyBean.js'></script>
<script type="text/javascript" src='/my_web_aplication/dwr/engine.js'></script>
<script type="text/javascript" src='/my_web_aplication/dwr/util.js'></script>

Is there any different way to access dwr functions in JSPX? Please let me know if I am missing anything?

 
tushar mahamuni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for posting wrong error message

the error message is : dwr.util' is null or not an object
 
Let me tell you a story about a man named Jed. He made this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!