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