Questions tagged [dwr]

DWR is a Java library that enables Java on the server and JavaScript in a browser to interact and call each other as simply as possible.

DWR: Easy Ajax for Java

DWR is an RPC library which makes it easy to call Java functions from JavaScript and to call JavaScript functions from Java (AKA Reverse Ajax).

It has a large user-base, active mailing list and has been used in many projects including the Walmart shopping site and American Airlines flight booking site.

DWR has a number of features like call batching, marshalling of virtually any data-structure between Java and JavaScript (including binary file uploading and downloading), exception handling, advanced CSRF protection and deep integration with several Java server-side technologies like Spring and Guice.

More Information:

Books:

329 questions
2
votes
2 answers

Why is Java giving me an IllegalArgumentException?

I'm using dwr and spring and I get this error: java.lang.IllegalArgumentException: Javascript name * is used by 2 classes I found nothing helpful on Google, do you know why I'm getting this error?
flybywire
  • 261,858
  • 191
  • 397
  • 503
2
votes
2 answers

sample program with DWR

I am trying to write a sample program with direct web remoting. went through the site http://directwebremoting.org/ have some basic questions. please help me what to try the program http://directwebremoting.org/dwr-demo/simple/text.html where to…
su03
  • 225
  • 2
  • 6
  • 13
2
votes
3 answers

Google App Engine modifyThreadGroup problem not letting me use DWR

My basic DWR code that works fine on tomcat doesn't work in GAE. According to http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine, dwr.3.0.0.RC1.jar is supported by GAE. I don't see any servlet parameter to disable…
jabawaba
  • 279
  • 1
  • 6
  • 16
2
votes
1 answer

X-Content-Type-Options:nosniff in DWR

Setting X-Content-Type-Options:nosniff in response header is not allowing the DWR calls to execute. Getting text/plain MIME type mismatch. Is there a solution for this?
2
votes
1 answer

Spring WebMvcConfigurerAdapter, WebApplicationInitializer and DWR null beans in controller

Note This was previously marked answered but as my understanding of the underlying components has improved, I see that our initial answer simply addressed the null pointer, but did not address the root cause. The root cause presently appears to be…
J E Carter II
  • 1,436
  • 1
  • 22
  • 39
2
votes
0 answers

Submit in Spring form using DWR library

In one of J2EE project, we are using DWR libary. Being familiar with simple ajax calls and little DWR, I am not able to figure out which service call is used on our backend on clicking the submit button in one of our spring forms. KRIDeclaration.jsp…
Mozif Beigh
  • 109
  • 1
  • 1
  • 8
2
votes
1 answer

Upgrading from Tomcat 6.0 to Tomcat 9.0 Undefined error using eclipse

I have a project that is been published in Tomcat6 and the code is written eclipse I need to update the program and make some changes so while at it i decided to upgrade tomcat server too !!! without any changes i deployed the war file in to the…
legend-is-back
  • 443
  • 2
  • 12
2
votes
1 answer

DWR File Upload Size Limit

I did plenty of research on DWR (www.directwebremoting.org) to understand how the 'fileUploadMaxBytes' initialization parameter can be used to limit file upload sizes without success. Here is what I have in my web.xml:
user510210
  • 91
  • 1
  • 9
2
votes
0 answers

How to Get DWR Token in Java

I want to get generated DWR token. I can see it in cookies, but how can I get it in java? I have dwr3.jar and called import org.directwebremoting.json.parse.javacc.Token; in controller. But there is no any getToken() or something similar to getting…
Eniss
  • 975
  • 2
  • 20
  • 40
2
votes
2 answers

Difference between setInterval & Polling?

I want to know the difference between setInterval() (or) setTimeout() in DOM and polling in ajax. What is the main difference? If both are same, why the identified by two different names? What is mean by polling in AJAX? Any links or resource about…
user405398
2
votes
2 answers

DWR Spring Integration: Is it possible to forward a DWR request to a Spring Controller?

I have a web application that integrates DWR 3 and Spring 3. All requests are handled by the Spring's DispatcherServlet. Everything works. When I request an AJAX request, it's handled correctly by the backing DWR service bean annotated with…
chris
  • 3,820
  • 6
  • 36
  • 36
2
votes
0 answers

Warning: Java script unresponsive error

I have a javascript function that is invoked by dwr from server side and processes the response(xml data) in client side. Basically the server side program is executing a large sql script(it could contain more than 10000 sql statements) and call the…
2
votes
1 answer

Interacting with objects managed by DWR from JSP

I'm working with Direct Web Remoting (DWR) as part of a 'plain' dynamic Java project (hosted on a Tomcat 6.0 server with Java 6). I have a simple JSP page which interacts with session-level variables within my user's session. However, I also have a…
NBJack
  • 317
  • 4
  • 13
2
votes
3 answers

Usually when we get "org.apache.commons.logging.LogFactory" error?

While deploying a dwr web app, i'm continuously getting this error. I dont know why this coming. I cant run any of my DWR sample projects. Apart from that, for what we get this ClassNotFound Error. What the concept here? This is starting of long…
user405398
2
votes
1 answer

How to cache DWR interface java script files

I noticed that when we use DWR, there are many requests to java-script files from the browser. It appeared that DWR scripts are not being cached by the browser. The response headers for the repeat downloads looked…