0

I know how to send data from the client java class (the entrypoint) in the GWT project but how do i send JSON object from handwritten javascript to GWT server side

Avi A
  • 69
  • 8

1 Answers1

0

If you know how to send data from the client java class (the entrypoint) in the GWT project then a better way is to use GWT JSNI

You can use GWT JSNI to call Java method from JavaScript and vice-verse.

You have to just export you Java method to JavaScript. Now in Java you have full control to do anything.


Find a sample code on Calling GWT Java function from JavaScript

Community
  • 1
  • 1
Braj
  • 46,415
  • 5
  • 60
  • 76
  • Is your issue resolved using JSNI? I hope now you have learned it that how to use JSNI export feature in GWT? – Braj May 05 '14 at 13:24