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
Asked
Active
Viewed 182 times
0
-
JSNI should do your work. - http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html – holmes840 May 05 '14 at 09:05
1 Answers
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
-
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