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
3
votes
3 answers

How to get thread debug information from running production Tomcat web application?

We have a production web application that appears to be having a thread stuck doing a bunch of work, and running up the CPU and load average. I know pretty much what the issue is - our DWR service is converting something extremely large to a…
Sean Adkinson
  • 8,425
  • 3
  • 45
  • 64
3
votes
1 answer

How is Javascript code generated in Direct Web Remoting (DWR)?

How exactly is Javascript code generated in Direct Web Remoting (DWR)? I have gone through the official site http://directwebremoting.org as well as other sources (http://directwebremoting.org/dwr/introduction/scripting-dwr.html) and understand…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
3
votes
1 answer

Spring Form Controller with DWR

I am using spring and DWR combination,When i do ajax request from DWR.I want to access entire form values bind to the bean in my DAO layer. I didn't find any examples for Spring form controller with DWR. Any suggestions or help appreciated. Thanks…
user581805
  • 77
  • 1
  • 3
  • 11
3
votes
1 answer

not able to get a proper hashmap for a DWR call

I am trying to pass a string of data which is a hashmap from a javascript to a java function by making an Ajax DWR call as below: var str11 = { "78965":{"age":"34yrs","height":"4"}, "44589":{"age": "32yrs", "height":…
deepak
  • 31
  • 4
3
votes
2 answers

How to upload a zip file using Java?

I trying to upload a zip file. In my project i am using DWR in the client side and Java in server side. As i have seen in DWR tutorials for uploading data(Its not in their website. They are providing it with dwr.rar bundle) they getting input by the…
user405398
3
votes
1 answer

How DWR cast incoming data and evade type erasure

I would like to request for an item class of collection (kind of specific reflection). But regarding to type erasure it seems not possible and also regarding to some topics I've read here on stack. There are some workarounds (here), but I'm curious…
Radim
  • 164
  • 1
  • 4
  • 18
3
votes
3 answers

Using Java server-side with PHP-generated front-end

 Does anyone have a real-world experience in building such a project? I'd like to move away questions about "is it good idea or not", but focus on possible solutions. I see one simple way - HTTP GET/POST + xml/json - and one more elegant - AJAX/DWR.…
stormdb
  • 371
  • 1
  • 4
  • 13
3
votes
1 answer

DWR call throws "Failed to read input" in IE8, appearing too frequent

This issue occurs in IE8 only, On browser it throws http 502 error ,while in apache it throws http 103 & my application breaks due to this error After adding sysout in dwr jar i got the following logs: DWR Exception in ParsePost Data Failed to…
3
votes
3 answers

DWR: dwr is not defined

I'm a starter in DWR. According to tutorial in (http://directwebremoting.org/dwr-demo/simple/text.html), i placed dwr script my html file. But when i run the application it show the following message. ReferenceError: dwr is not defined [Break On…
Master Mind
  • 2,386
  • 3
  • 31
  • 48
3
votes
1 answer

Spring 3 MVC integration with DWR with Annotation

Can anybody please help me finding any good tutorial/sample code about integrating Spring3-MVC and DWR .I have searched hours on internet but can't find anything useful. Thanks.
Dangling Piyush
  • 3,658
  • 8
  • 37
  • 52
2
votes
1 answer

Spring Security Login via DWR (Direct Web Remoting)

I am looking for a way to login/logout users with DWR, so that I could just create a DWR bean with methods login and logout. public class AuthorizationHandler { @Autowired private UserRepository userRepository; public Map
Vojtěch
  • 11,312
  • 31
  • 103
  • 173
2
votes
1 answer

Deliver javascripts from jar

I have a java web application. Here I have some javascript files which I want to be inside a jar file. I want there will be a servlet which will deliver the javascript files from the jar. The feature is like DWR library. They have some javascript…
MAK Ripon
  • 1,065
  • 4
  • 14
  • 27
2
votes
2 answers

Is it possible to manually set the command object in an @RequestMapping method before Spring binding?

I have a JSP that has a Spring form in it. The form's command object is added in the controller before the JSP is rendered. Spring binds the form in the JSP to this command object, and will correctly handle it when submitting a NEW instance. …
Matt
  • 3,254
  • 3
  • 23
  • 32
2
votes
1 answer

Spring mvc & DWR - Need help to implement progress bar while upload file

I got a classic multipart form with spring mvc 3 which works fine : I can upload a file to a controller with 2 parameters ( name and description). My controller get the MultipartFile file and parameters, and put in database with DAO classes. My Goal…
user712904
2
votes
5 answers

Use an Ajax response in JSP

I have a JSP page which has nothing but a normal HTML table with five rows and five columns. Now I am making an Ajax call and get a response back. Now once I have the response back, I need the data to be filled in appropriate cells of the table. So…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
1 2
3
21 22