• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

dwr error

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am making dwr work in my application. Below is what I have done.

in jsp
I am importing the x.js file
<script type='text/javascript' src='/dwr/interface/x.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>
<script type='text/javascript' src='/resources/js/x.js'></script>

In js file I am calling my action like below

XAction.someMethod()

while running I get the error that XAction is undefined even though I have defined it as below
in dwr.xml

<create creator="new" javascript="xAction">
<param name="class" value="XAction" />
<include method="someMethod" />
</create>


Am I missing something here .

I have the drw jar file and web.xml entries for dwr right.

Thanks
Rampreet
 
reply
    Bookmark Topic Watch Topic
  • New Topic