• 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

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry for posting wrong error message

the error message is : dwr.util' is null or not an object
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic