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
5
votes
1 answer

How are batched DWR requests handled differently from non-batched on the server side?

I've written a DWR client in Python, which I use for automating tests run against a DWR-based website. Up until now, all the calls I make are single, non-batched requests, and I make several requests, all in a single-threaded manner. I noticed that…
Dan
  • 2,157
  • 20
  • 24
5
votes
1 answer

How does Direct Web Remoting (DWR) work?

How exactly or what exactly does Direct Web Remoting (DWR) do? While I have already gone through the official site http://directwebremoting.org/ I wanted to understand in simple language.. Specifically I have following questions; 1. While engine.js…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
5
votes
2 answers

DWR 3.0.rc2 and Maven

can someone please show me how to integrate dwr 3.0 rc1 or rc2 in a maven build? I'm not finding a repository with the jar, just the pom (http://download.java.net/maven/2/org/directwebremoting/dwr/3.0.0-rc2-SNAPSHOT/). Also, the link to download it…
eb.iliass
  • 79
  • 1
  • 4
5
votes
0 answers

Convert Int8Array to byte[] javascript

I am trying to pass an Int8Array, which is created from an array buffer to a java method via DWR, which accepts it as a byte[] parameter. Javascript : uploadFiles: function(eve) { var fileContent = null; for(var i = 0; i <…
bub
  • 657
  • 1
  • 9
  • 18
5
votes
2 answers

Using session scoped Spring bean with DWR

Spring: 2.5.6.SEC01 DWR: 2.0.5 I would like to use a session scoped bean from DWR. It works fine, when I configure the bean to be a singleton. I read this tutor: (http://directwebremoting.org/dwr/server/integration/spring.html) and modified my…
user259131
4
votes
3 answers

Tomcat unable to read the schema document

We are trying to add DWR for current project and the code that does this is as below:
oneworld
  • 770
  • 4
  • 17
  • 31
4
votes
4 answers

how to write a file object on server response and without saving file on server?

I am using Spring with DWR . I want to return a file object as response , however I save the file (to be sent) at server temporary location and then send its location as href for anchor tag on client side , however I wonder if there could be a way…
Sankalp
  • 2,030
  • 7
  • 30
  • 41
4
votes
2 answers

How to convert a InputStream to ZIP format?

I am having a InputStream Object which is actually a zip file. I want to change it back to zip file and save it. I am using DWR's FileTransfer class object to receive the uploaded data from client. FileTransfer have 3 methods, getInputStream() is…
user405398
4
votes
13 answers

What is the Use of Javascript

What is the main motto of using Javascript mostly. How it will be useful for developing Applications. I know Html. How it will help me in learning Javascript. Any relations to both JS and html.
Gladiator
  • 187
  • 2
  • 4
  • 11
4
votes
2 answers

Error in DWR 2.0.5

I am only allowed to use DWR 2.0.5 as DWR 3 is not yet released. My servers is WAS 8.0. I have 2 URLS Page1 and Page 2. Page1 will have a simple lable and an empty textbox. Page2 has nothing. First I will enter Page1 and then I will enter Page…
user3310115
  • 1,372
  • 2
  • 18
  • 48
4
votes
0 answers

DWR Incomplete reply from server

I am working on Dwr with Dojo, i am using DWR Version 3.0.RC2 dwr.jar (1.1Mb) jar file. Onpage load time giving alert error "Incomplete reply from server"
Vhasure Prashant
  • 188
  • 5
  • 15
4
votes
2 answers

is DWR (direct web remoting) a dead project?

Is DWR a dead project? It does not appear to be under active development. The latest 3.0 release appears to be stalled. I'm specifically wondering if there are going to be maintenance releases of DWR 1.x or 2.x or is 3.0 is ever going to be…
Travis Schneeberger
  • 2,010
  • 20
  • 23
4
votes
2 answers

DWR like Javascript library for REST

Is there a Javascript library like DWR that can generate javascript stub for REST api. We are using Jersey/JSR-311 for REST on server and was wondering that instead of using libraries like Jquery or dojo if there is a library that can take a Rest…
Kalpesh Patel
  • 323
  • 3
  • 13
4
votes
7 answers

Which serverside Java technology to use with ExtJS

We are plannnig to upgrade the UI framework for our 6-8 year old application written using Struts/JSP/EJB to ExtJS. Just curious as to what is the most popular Java technology on the server people have been using. We were looking into several…
Kalpesh Patel
  • 323
  • 3
  • 13
3
votes
1 answer

Sending and receiving JSON object through DWR

I am using DWR in my project for AJAX calls. DWR converts javascript objects to java objects by reading the java class. I want to send and receive JSON like structure through DWR. Eg: JS Object: { "name" : "TamilVendhan", "age" : "24", …
user405398
1
2
3
21 22